diff options
-rw-r--r-- | Source/CMCopyTable.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/CMCopyTable.m b/Source/CMCopyTable.m index a6189d13..e3a2c0b9 100644 --- a/Source/CMCopyTable.m +++ b/Source/CMCopyTable.m @@ -397,11 +397,14 @@ int MENU_EDIT_COPY_AS_SQL = 2002; */ - (void)setTableInstance:(id)anInstance withTableData:(id)theTableData withColumns:(NSArray *)columnDefs withTableName:(NSString *)aTableName withConnection:(id)aMySqlConnection { - columnDefinitions = [[NSArray arrayWithArray:columnDefs] retain]; selectedTable = aTableName; tableData = theTableData; mySQLConnection = aMySqlConnection; tableInstance = anInstance; + + if (columnDefinitions) [columnDefinitions release]; + + columnDefinitions = [[NSArray alloc] initWithArray:columnDefs]; } @end |