aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDotExporter.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/SPDotExporter.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/SPDotExporter.m')
-rw-r--r--Source/SPDotExporter.m13
1 files changed, 1 insertions, 12 deletions
diff --git a/Source/SPDotExporter.m b/Source/SPDotExporter.m
index bb95da6b..3e9213da 100644
--- a/Source/SPDotExporter.m
+++ b/Source/SPDotExporter.m
@@ -65,19 +65,12 @@
return self;
}
-/**
- * Start the Dot schema 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];
-
NSMutableString *metaString = [NSMutableString string];
// Check that we have all the required info before starting the export
if ((![self dotExportTables]) || (![self dotTableData]) || ([[self dotExportTables] count] == 0)) {
- [pool release];
return;
}
@@ -120,7 +113,6 @@
// Check for cancellation flag
if ([self isCancelled]) {
[fkInfo release];
- [pool release];
return;
}
@@ -171,7 +163,6 @@
// Check for cancellation flag
if ([self isCancelled]) {
[fkInfo release];
- [pool release];
return;
}
@@ -225,8 +216,6 @@
// Inform the delegate that the export process is complete
[delegate performSelectorOnMainThread:@selector(dotExportProcessComplete:) withObject:self waitUntilDone:NO];
-
- [pool release];
}
#pragma mark -