From 5247ac10ff8d1fe91756c60dfd05605e8bc3d884 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Mon, 14 Dec 2009 01:23:29 +0000 Subject: - Work through static analysis of the source, fixing a number of small memory leaks and fixing a couple of over-releases --- Source/CMCopyTable.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Source/CMCopyTable.m') diff --git a/Source/CMCopyTable.m b/Source/CMCopyTable.m index 159bcaf6..8893696d 100644 --- a/Source/CMCopyTable.m +++ b/Source/CMCopyTable.m @@ -256,8 +256,10 @@ int MENU_EDIT_COPY_AS_SQL = 2002; if (![[self delegate] isKindOfClass:[CustomQuery class]] && [rowData isSPNotLoaded]) { // Abort if there are no indices on this table or if there's no table name given. - if (![[tableInstance argumentForRow:rowIndex] length] || selectedTable == nil) + if (![[tableInstance argumentForRow:rowIndex] length] || selectedTable == nil) { + [columnMappings release]; return nil; + } //if we have indexes, use argumentForRow dbDataRow = [[mySQLConnection queryString: @@ -294,6 +296,7 @@ int MENU_EDIT_COPY_AS_SQL = 2002; } break; default: + [columnMappings release]; return nil; } } -- cgit v1.2.3