aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableContent.m
diff options
context:
space:
mode:
authorbamse16 <marius@marius.me.uk>2009-06-05 15:07:25 +0000
committerbamse16 <marius@marius.me.uk>2009-06-05 15:07:25 +0000
commit67a3148cec8bc7d1c6f52f60c8ce93a4fe0b8ece (patch)
tree14dbf0a8861ade6a232dfe2d0fdfab0807375aa5 /Source/TableContent.m
parentb3d173a9bf9ade79a06202b5666b105936ef0dff (diff)
downloadsequelpro-67a3148cec8bc7d1c6f52f60c8ce93a4fe0b8ece.tar.gz
sequelpro-67a3148cec8bc7d1c6f52f60c8ce93a4fe0b8ece.tar.bz2
sequelpro-67a3148cec8bc7d1c6f52f60c8ce93a4fe0b8ece.zip
Fixed some memory leaks found using llvm/clang. There are still some to fix
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r--Source/TableContent.m3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/TableContent.m b/Source/TableContent.m
index 555b1a13..c93f4f00 100644
--- a/Source/TableContent.m
+++ b/Source/TableContent.m
@@ -738,7 +738,7 @@
{
NSMutableDictionary *tempRow;
CMMCPResult *queryResult;
- NSDictionary *row, *dbDataRow;
+ NSDictionary *row, *dbDataRow = nil;
int i;
// Check whether a save of the current row is required.
@@ -766,7 +766,6 @@
dbDataRow = [queryResult fetchRowAsDictionary];
}
-
//set autoincrement fields to NULL
queryResult = [mySQLConnection queryString:[NSString stringWithFormat:@"SHOW COLUMNS FROM %@", [selectedTable backtickQuotedString]]];
if ([queryResult numOfRows]) [queryResult dataSeek:0];