From d4291d60d42ec4be3f08f3ad5edb66f767ad750e Mon Sep 17 00:00:00 2001 From: Andy Matuschak Date: Mon, 23 Jun 2008 22:48:57 -0700 Subject: [PATCH] Fixes 239512 NSAutoreleasePool is now drained instead of released. --- NTSynchronousTask.m | 2 +- SUPlainInstaller.m | 2 +- relaunch.m | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NTSynchronousTask.m b/NTSynchronousTask.m index 541483a6..d506cad5 100644 --- a/NTSynchronousTask.m +++ b/NTSynchronousTask.m @@ -84,7 +84,7 @@ NS_HANDLER; NS_ENDHANDLER; - [pool release]; + [pool drain]; // retained above [result autorelease]; diff --git a/SUPlainInstaller.m b/SUPlainInstaller.m index 63d5122d..f876c19e 100644 --- a/SUPlainInstaller.m +++ b/SUPlainInstaller.m @@ -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; diff --git a/relaunch.m b/relaunch.m index b98cf666..ce90ad99 100644 --- a/relaunch.m +++ b/relaunch.m @@ -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; }