diff options
author | rowanbeentje <rowan@beent.je> | 2009-12-14 01:23:29 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-12-14 01:23:29 +0000 |
commit | 5247ac10ff8d1fe91756c60dfd05605e8bc3d884 (patch) | |
tree | 5aa40a57a722c2b38d9759ff772530960d3d3d98 /Source/SPQueryFavoriteManager.m | |
parent | 5298595375e55bb70edae0ddf17d921a299b1014 (diff) | |
download | sequelpro-5247ac10ff8d1fe91756c60dfd05605e8bc3d884.tar.gz sequelpro-5247ac10ff8d1fe91756c60dfd05605e8bc3d884.tar.bz2 sequelpro-5247ac10ff8d1fe91756c60dfd05605e8bc3d884.zip |
- Work through static analysis of the source, fixing a number of small memory leaks and fixing a couple of over-releases
Diffstat (limited to 'Source/SPQueryFavoriteManager.m')
-rw-r--r-- | Source/SPQueryFavoriteManager.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/SPQueryFavoriteManager.m b/Source/SPQueryFavoriteManager.m index a1b1a080..17818e87 100644 --- a/Source/SPQueryFavoriteManager.m +++ b/Source/SPQueryFavoriteManager.m @@ -728,6 +728,7 @@ [alert setAlertStyle:NSCriticalAlertStyle]; [alert runModal]; + if (spf) [spf release]; return; } @@ -745,6 +746,7 @@ // } [favoritesArrayController rearrangeObjects]; [favoritesTableView reloadData]; + [spf release]; } else { NSAlert *alert = [NSAlert alertWithMessageText:[NSString stringWithFormat:NSLocalizedString(@"Error while reading data file", @"error while reading data file")] defaultButton:NSLocalizedString(@"OK", @"OK button") @@ -754,6 +756,7 @@ [alert setAlertStyle:NSInformationalAlertStyle]; [alert runModal]; + [spf release]; return; } } |