Fixes 239512

NSAutoreleasePool is now drained instead of released.
This commit is contained in:
Andy Matuschak committed 2008-06-23 22:48:57 -07:00
1 parent cd4addbcd7
commit d4291d60d4
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -84,7 +84,7 @@
NS_HANDLER;
NS_ENDHANDLER;
[pool release];
[pool drain];
// retained above
[result autorelease];
+1 -1
View File
@@ -27,7 +27,7 @@ extern NSString *SUInstallerDelegateKey;
[self installPath:[info objectForKey:SUInstallerPathKey] overHostBundle:[info objectForKey:SUInstallerHostBundleKey] delegate:[info objectForKey:SUInstallerDelegateKey]];
[pool release];
[pool drain];
}
+ (void)performInstallationWithPath:(NSString *)path hostBundle:(NSBundle *)hostBundle delegate:delegate synchronously:(BOOL)synchronously;
+1 -1
View File
@@ -53,7 +53,7 @@ int main (int argc, const char * argv[])
[[[TerminationListener alloc] initWithExecutablePath:argv[1] parentProcessId:atoi(argv[2])] autorelease];
[[NSApplication sharedApplication] run];
[pool release];
[pool drain];
return EXIT_SUCCESS;
}