aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDataImport.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/SPDataImport.m
parent5b55d8c4d24b0c24a5dc74a49cfd70448146d582 (diff)
downloadsequelpro-e201531daa71ee1a2e2a0f927c619947126c9d3d.tar.gz
sequelpro-e201531daa71ee1a2e2a0f927c619947126c9d3d.tar.bz2
sequelpro-e201531daa71ee1a2e2a0f927c619947126c9d3d.zip
Addition to commit 2735e15b
Diffstat (limited to 'Source/SPDataImport.m')
-rw-r--r--Source/SPDataImport.m25
1 files changed, 12 insertions, 13 deletions
diff --git a/Source/SPDataImport.m b/Source/SPDataImport.m
index be3935c4..30ef3bf4 100644
--- a/Source/SPDataImport.m
+++ b/Source/SPDataImport.m
@@ -312,7 +312,7 @@
// Reset progress cancelled from any previous runs
progressCancelled = NO;
- if (lastFilename) [lastFilename release]; lastFilename = nil;
+ if (lastFilename) SPClear(lastFilename);
lastFilename = [[NSString stringWithString:[[openPanel URL] path]] retain];
@@ -1728,21 +1728,20 @@ cleanup:
- (void)dealloc
{
- if (fieldMappingImportArray) [fieldMappingImportArray release];
- if (geometryFields) [geometryFields release];
- if (geometryFieldsMapIndex) [geometryFieldsMapIndex release];
- if (bitFields) [bitFields release];
- if (nullableNumericFields) [nullableNumericFields release];
- if (bitFieldsMapIndex) [bitFieldsMapIndex release];
- if (nullableNumericFieldsMapIndex) [nullableNumericFieldsMapIndex release];
-
- if (lastFilename) [lastFilename release];
- if (prefs) [prefs release];
- if(selectedTableTarget) [selectedTableTarget release];
+ if (fieldMappingImportArray) SPClear(fieldMappingImportArray);
+ if (geometryFields) SPClear(geometryFields);
+ if (geometryFieldsMapIndex) SPClear(geometryFieldsMapIndex);
+ if (bitFields) SPClear(bitFields);
+ if (nullableNumericFields) SPClear(nullableNumericFields);
+ if (bitFieldsMapIndex) SPClear(bitFieldsMapIndex);
+ if (nullableNumericFieldsMapIndex) SPClear(nullableNumericFieldsMapIndex);
+ if (lastFilename) SPClear(lastFilename);
+ if (prefs) SPClear(prefs);
+ if (selectedTableTarget) SPClear(selectedTableTarget);
for (id retainedObject in nibObjectsToRelease) [retainedObject release];
- [nibObjectsToRelease release];
+ SPClear(nibObjectsToRelease);
[super dealloc];
}