diff options
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]; } /** |