diff options
author | rowanbeentje <rowan@beent.je> | 2010-03-15 00:15:23 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-03-15 00:15:23 +0000 |
commit | 5a6d0f17bbf6b09463b908182dc2cbb112a0c6cb (patch) | |
tree | 4eb9575d7de321fc6f454892d0df13ddc4b6ce39 /Source/TableSource.m | |
parent | 927784129ffd4d30e35f92a3fe6a8582219c64db (diff) | |
download | sequelpro-5a6d0f17bbf6b09463b908182dc2cbb112a0c6cb.tar.gz sequelpro-5a6d0f17bbf6b09463b908182dc2cbb112a0c6cb.tar.bz2 sequelpro-5a6d0f17bbf6b09463b908182dc2cbb112a0c6cb.zip |
Following a manual code review, fix some local variables overriding global variables, a few leaks, and additional nil setting/checking to prevent overreleases or releases of random areas of memory.
Diffstat (limited to 'Source/TableSource.m')
-rw-r--r-- | Source/TableSource.m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/TableSource.m b/Source/TableSource.m index 7c5f6ab4..c5e2a4b8 100644 --- a/Source/TableSource.m +++ b/Source/TableSource.m @@ -118,6 +118,7 @@ loads aTable, put it in an array, update the tableViewColumns and reload the tab nil, nil, [NSApp mainWindow], self, nil, nil, nil, [NSString stringWithFormat:NSLocalizedString(@"An error occurred while retrieving information.\nMySQL said: %@", @"message of panel when retrieving information failed"), errorMessage]); + if (tableSourceResult) [tableSourceResult release]; return; } @@ -148,7 +149,7 @@ loads aTable, put it in an array, update the tableViewColumns and reload the tab nil, nil, [NSApp mainWindow], self, nil, nil, nil, [NSString stringWithFormat:NSLocalizedString(@"An error occurred while retrieving information.\nMySQL said: %@", @"message of panel when retrieving information failed"), errorMessage]); - + if (indexResult) [indexResult release]; return; } [indexResult setReturnDataAsStrings:YES]; |