aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldEditorController.m
diff options
context:
space:
mode:
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];