aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPSQLExporter.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-11-20 04:48:50 +0100
committerMax <post@wickenrode.com>2015-11-20 04:48:50 +0100
commit8b2376dc47110530eeab8f61334ff46e28256045 (patch)
tree83170e070debcff4731af78a6120df2a5dad4f39 /Source/SPSQLExporter.m
parent5568af642c2fc738f175e0be4729fd3e1fe2263a (diff)
downloadsequelpro-8b2376dc47110530eeab8f61334ff46e28256045.tar.gz
sequelpro-8b2376dc47110530eeab8f61334ff46e28256045.tar.bz2
sequelpro-8b2376dc47110530eeab8f61334ff46e28256045.zip
Reorder some code to remove duplicate code and make leaking a NSAutoreleasePool more difficult
Diffstat (limited to 'Source/SPSQLExporter.m')
-rw-r--r--Source/SPSQLExporter.m18
1 files changed, 1 insertions, 17 deletions
diff --git a/Source/SPSQLExporter.m b/Source/SPSQLExporter.m
index c575156d..2fc581b0 100644
--- a/Source/SPSQLExporter.m
+++ b/Source/SPSQLExporter.m
@@ -84,13 +84,8 @@
return self;
}
-/**
- * Start the SQL export process. This method is automatically called when an instance of this class
- * is placed on an NSOperationQueue. Do not call it directly as there is no manual multithreading.
- */
-- (void)main
+- (void)exportOperation
{
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
sqlTableDataInstance = [[[SPTableData alloc] init] autorelease];
[sqlTableDataInstance setConnection:connection];
@@ -128,7 +123,6 @@
{
[errors release];
[sqlString release];
- [pool release];
return;
}
@@ -150,7 +144,6 @@
if ([self isCancelled]) {
[errors release];
[sqlString release];
- [pool release];
return;
}
@@ -207,7 +200,6 @@
if ([self isCancelled]) {
[errors release];
[sqlString release];
- [pool release];
return;
}
@@ -383,7 +375,6 @@
[sqlExportPool release];
[errors release];
[sqlString release];
- [pool release];
free(useRawDataForColumnAtIndex);
free(useRawHexDataForColumnAtIndex);
@@ -550,7 +541,6 @@
if ([self isCancelled]) {
[errors release];
[sqlString release];
- [pool release];
return;
}
@@ -598,7 +588,6 @@
if ([self isCancelled]) {
[errors release];
[sqlString release];
- [pool release];
return;
}
@@ -619,7 +608,6 @@
if ([self isCancelled]) {
[errors release];
[sqlString release];
- [pool release];
return;
}
@@ -651,7 +639,6 @@
if ([self isCancelled]) {
[errors release];
[sqlString release];
- [pool release];
return;
}
@@ -667,7 +654,6 @@
[proceduresList release];
[errors release];
[sqlString release];
- [pool release];
return;
}
@@ -796,8 +782,6 @@
// Inform the delegate that the export process is complete
[delegate performSelectorOnMainThread:@selector(sqlExportProcessComplete:) withObject:self waitUntilDone:NO];
-
- [pool release];
}
/**