aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableCopy.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2010-07-06 22:29:50 +0000
committerstuconnolly <stuart02@gmail.com>2010-07-06 22:29:50 +0000
commit98321e0139af73928307da87ed31245b858e86d0 (patch)
tree1ca248b1785660e63eab1a0f17a917562752e291 /Source/SPTableCopy.m
parent2831094df859915cc3af9bc275bd35753aff8192 (diff)
downloadsequelpro-98321e0139af73928307da87ed31245b858e86d0.tar.gz
sequelpro-98321e0139af73928307da87ed31245b858e86d0.tar.bz2
sequelpro-98321e0139af73928307da87ed31245b858e86d0.zip
Fix various memory leaks as a result of static analysis.
Diffstat (limited to 'Source/SPTableCopy.m')
-rw-r--r--Source/SPTableCopy.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/SPTableCopy.m b/Source/SPTableCopy.m
index 5af46972..bb819371 100644
--- a/Source/SPTableCopy.m
+++ b/Source/SPTableCopy.m
@@ -57,9 +57,7 @@
[createTableStatement insertString:@"." atIndex:13];
[createTableStatement insertString:[targetDB backtickQuotedString] atIndex:13];
- [connection queryString:createTableStatement];
- [createTableStatement release];
-
+ [connection queryString:createTableStatement];
if ([connection queryErrored]) {
SPBeginAlertSheet(NSLocalizedString(@"Failed to copy table", @"copy table error message"),
@@ -73,6 +71,9 @@
} else {
NSLog(@"Could not copy non-table/view %@", tableName);
}
+
+ [createTableStatement release];
+
return NO;
}