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; }