diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-12-20 14:30:39 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-12-20 14:30:39 +0000 |
commit | d23a09dbbc88a0e10d36b05bbacbca8c1dec3147 (patch) | |
tree | f179c05460753d3960202de0473e14337e13841e /Source/SPBundleEditorController.m | |
parent | d442e29e22e7cdb8a36f2bf3d2ad7cfc8910a0e9 (diff) | |
download | sequelpro-d23a09dbbc88a0e10d36b05bbacbca8c1dec3147.tar.gz sequelpro-d23a09dbbc88a0e10d36b05bbacbca8c1dec3147.tar.bz2 sequelpro-d23a09dbbc88a0e10d36b05bbacbca8c1dec3147.zip |
• further preparations for default Bundles management
Diffstat (limited to 'Source/SPBundleEditorController.m')
-rw-r--r-- | Source/SPBundleEditorController.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/SPBundleEditorController.m b/Source/SPBundleEditorController.m index 82c93047..cf6478fe 100644 --- a/Source/SPBundleEditorController.m +++ b/Source/SPBundleEditorController.m @@ -922,6 +922,7 @@ if(!cmdData || readError != nil || [convError length] || !(format == NSPropertyListXMLFormat_v1_0 || format == NSPropertyListBinaryFormat_v1_0)) { NSLog(@"“%@” file couldn't be read.", cmdFilePath); NSBeep(); + if (cmdData) [cmdData release]; return NO; } else { // Check for changes and return if no changes are found @@ -930,6 +931,7 @@ if([cmdData objectForKey:SPBundleFileIsDefaultBundleKey]) [saveDict setObject:[NSNumber numberWithBool:YES] forKey:SPBundleFileDefaultBundleWasModifiedKey]; } + if (cmdData) [cmdData release]; } // Remove a given old command.plist file |