aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TablesList.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-08-04 23:42:53 +0000
committerrowanbeentje <rowan@beent.je>2009-08-04 23:42:53 +0000
commit45d3ddf30437903045f31a30356502af91dd7a7d (patch)
tree98da573a3d1ab5eabaef1331b93bcf6e6cd3d453 /Source/TablesList.m
parent4ce2164c519d4382b67255523c96c9e03f7fdcc6 (diff)
downloadsequelpro-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.m3
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];
}
/**