Browse Source

[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 years ago
parent
commit
07e8f18f33
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/core/monojob.c

+ 1
- 0
src/core/monojob.c View File

@@ -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…
Cancel
Save