diff options
author | rowanbeentje <rowan@beent.je> | 2009-08-04 23:42:53 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-08-04 23:42:53 +0000 |
commit | 45d3ddf30437903045f31a30356502af91dd7a7d (patch) | |
tree | 98da573a3d1ab5eabaef1331b93bcf6e6cd3d453 /Source/TablesList.m | |
parent | 4ce2164c519d4382b67255523c96c9e03f7fdcc6 (diff) | |
download | sequelpro-45d3ddf30437903045f31a30356502af91dd7a7d.tar.gz sequelpro-45d3ddf30437903045f31a30356502af91dd7a7d.tar.bz2 sequelpro-45d3ddf30437903045f31a30356502af91dd7a7d.zip |
- Fix some small memory leaks when changing tables
- Fix the history navigation to correctly switch across databases without invalid history states
Diffstat (limited to 'Source/TablesList.m')
-rw-r--r-- | Source/TablesList.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/TablesList.m b/Source/TablesList.m index 19bafc78..4f852f9b 100644 --- a/Source/TablesList.m +++ b/Source/TablesList.m @@ -207,6 +207,7 @@ selectedTableName = [[NSString alloc] initWithString:[tables objectAtIndex:itemToReselect]]; selectedTableType = [[tableTypes objectAtIndex:itemToReselect] intValue]; } else { + if (selectedTableName) [selectedTableName release]; selectedTableName = nil; selectedTableType = SP_TABLETYPE_NONE; } @@ -222,6 +223,8 @@ else if (tableListContainsViews) [[listFilterField cell] setPlaceholderString:NSLocalizedString(@"Filter tables and views", @"Filter placeholder when tables and views are present")]; else [[listFilterField cell] setPlaceholderString:NSLocalizedString(@"Filter the list of tables", @"Filter placeholder when only tables are present")]; } + + if (previousSelectedTable) [previousSelectedTable release]; } /** |