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
 	rc = monojob_rc;
91
 	rc = monojob_rc;
92
 
92
 
93
 done:
93
 done:
94
+	job_done ( &monojob, rc );
94
 	if ( rc ) {
95
 	if ( rc ) {
95
 		printf ( " %s\n", strerror ( rc ) );
96
 		printf ( " %s\n", strerror ( rc ) );
96
 	} else {
97
 	} else {

Loading…
Cancel
Save