diff options
author | stuconnolly <stuart02@gmail.com> | 2010-07-06 22:29:50 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-07-06 22:29:50 +0000 |
commit | 98321e0139af73928307da87ed31245b858e86d0 (patch) | |
tree | 1ca248b1785660e63eab1a0f17a917562752e291 /Source/SPSQLExporter.m | |
parent | 2831094df859915cc3af9bc275bd35753aff8192 (diff) | |
download | sequelpro-98321e0139af73928307da87ed31245b858e86d0.tar.gz sequelpro-98321e0139af73928307da87ed31245b858e86d0.tar.bz2 sequelpro-98321e0139af73928307da87ed31245b858e86d0.zip |
Fix various memory leaks as a result of static analysis.
Diffstat (limited to 'Source/SPSQLExporter.m')
-rw-r--r-- | Source/SPSQLExporter.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPSQLExporter.m b/Source/SPSQLExporter.m index 07b6a0e0..d7a82666 100644 --- a/Source/SPSQLExporter.m +++ b/Source/SPSQLExporter.m @@ -84,8 +84,6 @@ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; sqlTableDataInstance = [[[SPTableData alloc] init] autorelease]; [sqlTableDataInstance setConnection:connection]; - - NSAutoreleasePool *sqlExportPool = [[NSAutoreleasePool alloc] init]; MCPResult *queryResult; MCPStreamingResult *streamingResult; @@ -120,6 +118,8 @@ (![self sqlDatabaseName]) || ([[self sqlDatabaseName] isEqualToString:@""]) || (![self sqlDatabaseVersion] || ([[self sqlDatabaseName] isEqualToString:@""]))) { + [errors release]; + [sqlString release]; [pool release]; return; } @@ -321,7 +321,7 @@ // Iterate through the rows to construct a VALUES group for each j = 0, k = 0; - sqlExportPool = [[NSAutoreleasePool alloc] init]; + NSAutoreleasePool *sqlExportPool = [[NSAutoreleasePool alloc] init]; // Inform the delegate that we are about to start writing the data to disk [delegate performSelectorOnMainThread:@selector(sqlExportProcessWillBeginWritingData:) withObject:self waitUntilDone:NO]; |