From 98321e0139af73928307da87ed31245b858e86d0 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Tue, 6 Jul 2010 22:29:50 +0000 Subject: Fix various memory leaks as a result of static analysis. --- Source/SPTableCopy.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Source/SPTableCopy.m') 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; } -- cgit v1.2.3