Pārlūkot izejas kodu

[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 15 gadus atpakaļ
vecāks
revīzija
07e8f18f33
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1
    0
      src/core/monojob.c

+ 1
- 0
src/core/monojob.c Parādīt failu

@@ -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 {

Notiek ielāde…
Atcelt
Saglabāt