aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCSVExporter.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/SPCSVExporter.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/SPCSVExporter.m')
-rw-r--r--Source/SPCSVExporter.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPCSVExporter.m b/Source/SPCSVExporter.m
index 49d6ade6..40feadf9 100644
--- a/Source/SPCSVExporter.m
+++ b/Source/SPCSVExporter.m
@@ -186,9 +186,9 @@
[queryResult setReturnDataAsStrings:YES];
if ([queryResult numOfRows]) {
- tableDetails = [[NSDictionary alloc] initWithDictionary:[queryResult fetchRowAsDictionary]];
+ id object = [[[NSDictionary alloc] initWithDictionary:[queryResult fetchRowAsDictionary]] objectForKey:@"Create View"];
- tableDetails = [[NSDictionary alloc] initWithDictionary:([tableDetails objectForKey:@"Create View"]) ? [[self csvTableData] informationForView:[self csvTableName]] : [[self csvTableData] informationForTable:[self csvTableName]]];
+ tableDetails = [[NSDictionary alloc] initWithDictionary:(object) ? [[self csvTableData] informationForView:[self csvTableName]] : [[self csvTableData] informationForTable:[self csvTableName]]];
}
// Retrieve the table details via the data class, and use it to build an array containing column numeric status