aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldEditorController.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/SPFieldEditorController.m
parent5b55d8c4d24b0c24a5dc74a49cfd70448146d582 (diff)
downloadsequelpro-e201531daa71ee1a2e2a0f927c619947126c9d3d.tar.gz
sequelpro-e201531daa71ee1a2e2a0f927c619947126c9d3d.tar.bz2
sequelpro-e201531daa71ee1a2e2a0f927c619947126c9d3d.zip
Addition to commit 2735e15b
Diffstat (limited to 'Source/SPFieldEditorController.m')
-rw-r--r--Source/SPFieldEditorController.m14
1 files changed, 6 insertions, 8 deletions
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m
index c223faf4..4f34a998 100644
--- a/Source/SPFieldEditorController.m
+++ b/Source/SPFieldEditorController.m
@@ -169,14 +169,14 @@
}
#endif
- if ( sheetEditData ) [sheetEditData release];
+ if ( sheetEditData ) SPClear(sheetEditData);
#ifndef SP_CODA
- if ( qlTypes ) [qlTypes release];
+ if ( qlTypes ) SPClear(qlTypes);
#endif
- if ( tmpFileName ) [tmpFileName release];
- if ( tmpDirPath ) [tmpDirPath release];
- if ( esUndoManager ) [esUndoManager release];
- if ( contextInfo ) [contextInfo release];
+ if ( tmpFileName ) SPClear(tmpFileName);
+ if ( tmpDirPath ) SPClear(tmpDirPath);
+ if ( esUndoManager ) SPClear(esUndoManager);
+ if ( contextInfo ) SPClear(contextInfo);
[super dealloc];
}
@@ -1078,8 +1078,6 @@
image = [[[NSImage alloc] initWithPasteboard:[NSPasteboard generalPasteboard]] autorelease];
if (image) {
- if (nil != sheetEditData) [sheetEditData release];
-
[editImage setImage:image];
if( sheetEditData ) [sheetEditData release];