From afe8afc41f414af3234426a7406fe486f75e8485 Mon Sep 17 00:00:00 2001 From: Andy Matuschak Date: Thu, 20 Aug 2009 23:18:15 -0700 Subject: [PATCH] Fixing Bug #393388: Leaking NSFileManager errors --- SUPlainInstallerInternals.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SUPlainInstallerInternals.m b/SUPlainInstallerInternals.m index c9c5343a..aaecf224 100644 --- a/SUPlainInstallerInternals.m +++ b/SUPlainInstallerInternals.m @@ -235,7 +235,7 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza NSString *tmpPath = [self _temporaryCopyNameForPath:dst]; #if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 - if (![[NSFileManager defaultManager] movePath:dst toPath:tmpPath handler:self]) + if (![[NSFileManager defaultManager] movePath:dst toPath:tmpPath handler:nil]) #else if (![[NSFileManager defaultManager] moveItemAtPath:dst toPath:tmpPath error:NULL]) #endif @@ -245,7 +245,7 @@ static BOOL AuthorizationExecuteWithPrivilegesAndWait(AuthorizationRef authoriza return NO; } #if MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_5 - if (![[NSFileManager defaultManager] copyPath:src toPath:dst handler:self]) + if (![[NSFileManager defaultManager] copyPath:src toPath:dst handler:nil]) #else if (![[NSFileManager defaultManager] copyItemAtPath:src toPath:dst error:NULL]) #endif