aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPBundleEditorController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPBundleEditorController.m')
-rw-r--r--Source/SPBundleEditorController.m2
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