aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPBundleEditorController.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-01-04 21:15:43 +0100
committerMax <post@wickenrode.com>2015-01-04 21:15:43 +0100
commite201531daa71ee1a2e2a0f927c619947126c9d3d (patch)
tree9b43cecf579b4318ec9b8f04c970a40c3232ba15 /Source/SPBundleEditorController.m
parent5b55d8c4d24b0c24a5dc74a49cfd70448146d582 (diff)
downloadsequelpro-e201531daa71ee1a2e2a0f927c619947126c9d3d.tar.gz
sequelpro-e201531daa71ee1a2e2a0f927c619947126c9d3d.tar.bz2
sequelpro-e201531daa71ee1a2e2a0f927c619947126c9d3d.zip
Addition to commit 2735e15b
Diffstat (limited to 'Source/SPBundleEditorController.m')
-rw-r--r--Source/SPBundleEditorController.m56
1 files changed, 27 insertions, 29 deletions
diff --git a/Source/SPBundleEditorController.m b/Source/SPBundleEditorController.m
index 69652bf1..01aca387 100644
--- a/Source/SPBundleEditorController.m
+++ b/Source/SPBundleEditorController.m
@@ -1090,8 +1090,7 @@ static NSString *SPSaveBundleAction = @"SPSaveBundle";
// Remove temporary drag file if any
if(draggedFilePath) {
[[NSFileManager defaultManager] removeItemAtPath:draggedFilePath error:nil];
- [draggedFilePath release];
- draggedFilePath = nil;
+ SPClear(draggedFilePath);
}
if(oldBundleName) SPClear(oldBundleName);
}
@@ -1478,8 +1477,7 @@ static NSString *SPSaveBundleAction = @"SPSaveBundle";
// Remove old temporary drag file if any
if(draggedFilePath) {
[[NSFileManager defaultManager] removeItemAtPath:draggedFilePath error:nil];
- [draggedFilePath release];
- draggedFilePath = nil;
+ SPClear(draggedFilePath);
}
NSImage *dragImage;
@@ -2074,33 +2072,33 @@ static NSString *SPSaveBundleAction = @"SPSaveBundle";
- (void)dealloc
{
- [inputGeneralScopePopUpMenu release];
- [inputInputFieldScopePopUpMenu release];
- [inputDataTableScopePopUpMenu release];
- [outputGeneralScopePopUpMenu release];
- [outputInputFieldScopePopUpMenu release];
- [outputDataTableScopePopUpMenu release];
- [inputFallbackInputFieldScopePopUpMenu release];
- [triggerInputFieldPopUpMenu release];
- [triggerDataTablePopUpMenu release];
- [triggerGeneralPopUpMenu release];
- [withBlobDataTablePopUpMenu release];
- [inputNonePopUpMenu release];
+ SPClear(inputGeneralScopePopUpMenu);
+ SPClear(inputInputFieldScopePopUpMenu);
+ SPClear(inputDataTableScopePopUpMenu);
+ SPClear(outputGeneralScopePopUpMenu);
+ SPClear(outputInputFieldScopePopUpMenu);
+ SPClear(outputDataTableScopePopUpMenu);
+ SPClear(inputFallbackInputFieldScopePopUpMenu);
+ SPClear(triggerInputFieldPopUpMenu);
+ SPClear(triggerDataTablePopUpMenu);
+ SPClear(triggerGeneralPopUpMenu);
+ SPClear(withBlobDataTablePopUpMenu);
+ SPClear(inputNonePopUpMenu);
- [inputGeneralScopeArray release];
- [inputInputFieldScopeArray release];
- [inputDataTableScopeArray release];
- [outputGeneralScopeArray release];
- [outputInputFieldScopeArray release];
- [outputDataTableScopeArray release];
- [inputFallbackInputFieldScopeArray release];
- [triggerInputFieldArray release];
- [triggerDataTableArray release];
- [triggerGeneralArray release];
- [withBlobDataTableArray release];
+ SPClear(inputGeneralScopeArray);
+ SPClear(inputInputFieldScopeArray);
+ SPClear(inputDataTableScopeArray);
+ SPClear(outputGeneralScopeArray);
+ SPClear(outputInputFieldScopeArray);
+ SPClear(outputDataTableScopeArray);
+ SPClear(inputFallbackInputFieldScopeArray);
+ SPClear(triggerInputFieldArray);
+ SPClear(triggerDataTableArray);
+ SPClear(triggerGeneralArray);
+ SPClear(withBlobDataTableArray);
- [shellVariableSuggestions release];
- [deletedDefaultBundles release];
+ SPClear(shellVariableSuggestions);
+ SPClear(deletedDefaultBundles);
if (touchedBundleArray) SPClear(touchedBundleArray);
if (commandBundleTree) SPClear(commandBundleTree);