aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableSource.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/TableSource.m')
-rw-r--r--Source/TableSource.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/TableSource.m b/Source/TableSource.m
index 7fb0cdfd..48d1d75d 100644
--- a/Source/TableSource.m
+++ b/Source/TableSource.m
@@ -49,7 +49,12 @@ loads aTable, put it in an array, update the tableViewColumns and reload the tab
// Check whether a save of the current row is required.
if ( ![self saveRowOnDeselect] ) return;
- selectedTable = aTable;
+ if (selectedTable) [selectedTable release];
+ if (aTable == nil) {
+ selectedTable = nil;
+ } else {
+ selectedTable = [[NSString alloc] initWithString:aTable];
+ }
[tableSourceView deselectAll:self];
[indexView deselectAll:self];
@@ -1342,6 +1347,7 @@ traps enter and esc and make/cancel editing without entering next row
currentlyEditingRow = -1;
defaultValues = nil;
+ selectedTable = nil;
prefs = [NSUserDefaults standardUserDefaults];
}
@@ -1363,6 +1369,7 @@ traps enter and esc and make/cancel editing without entering next row
[oldRow release];
[enumFields release];
if (defaultValues) [defaultValues release];
+ if (selectedTable) [selectedTable release];
[super dealloc];
}