Преглед на файлове

[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…
Отказ
Запис