Skip to content

Commit

Permalink
Merge pull request #93 from jasonprado/master
Browse files Browse the repository at this point in the history
Close and release the CFWriteStream used to write projects when done
  • Loading branch information
alloy committed Sep 20, 2013
2 parents d7bacd9 + 20b0544 commit 8490431
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/xcodeproj/xcodeproj_ext.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,12 @@ write_plist(VALUE self, VALUE hash, VALUE path) {
if (!success) {
CFShow(errorString);
}
CFWriteStreamClose(stream);
} else {
printf("Unable to open stream!\n");
}

CFRelease(stream);
CFRelease(dict);
return success ? Qtrue : Qfalse;
}
Expand Down

0 comments on commit 8490431

Please sign in to comment.