瀏覽代碼

[monojob] Release reference on completed job

monojob_wait() was holding a reference to the completed job, meaning that
various objects would not be freed until the next job was plugged in to
the monojob interface.
tags/v0.9.6
Michael Brown 16 年之前
父節點
當前提交
07e8f18f33
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1
    0
      src/core/monojob.c

+ 1
- 0
src/core/monojob.c 查看文件

@@ -91,6 +91,7 @@ int monojob_wait ( const char *string ) {
91 91
 	rc = monojob_rc;
92 92
 
93 93
 done:
94
+	job_done ( &monojob, rc );
94 95
 	if ( rc ) {
95 96
 		printf ( " %s\n", strerror ( rc ) );
96 97
 	} else {

Loading…
取消
儲存