diff options
author | bamse16 <marius@marius.me.uk> | 2009-06-05 15:07:25 +0000 |
---|---|---|
committer | bamse16 <marius@marius.me.uk> | 2009-06-05 15:07:25 +0000 |
commit | 67a3148cec8bc7d1c6f52f60c8ce93a4fe0b8ece (patch) | |
tree | 14dbf0a8861ade6a232dfe2d0fdfab0807375aa5 /Source/CustomQuery.m | |
parent | b3d173a9bf9ade79a06202b5666b105936ef0dff (diff) | |
download | sequelpro-67a3148cec8bc7d1c6f52f60c8ce93a4fe0b8ece.tar.gz sequelpro-67a3148cec8bc7d1c6f52f60c8ce93a4fe0b8ece.tar.bz2 sequelpro-67a3148cec8bc7d1c6f52f60c8ce93a4fe0b8ece.zip |
Fixed some memory leaks found using llvm/clang. There are still some to fix
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r-- | Source/CustomQuery.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index 63a1efd4..b678abfe 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -1409,6 +1409,7 @@ { WebHistoryItem *aWebHistoryItem = [[WebHistoryItem alloc] initWithURLString:[NSString stringWithFormat:@"applewebdata://%@", searchString] title:searchString lastVisitedTimeInterval:[[NSDate date] timeIntervalSinceDate:[NSDate distantFuture]]]; [[helpWebView backForwardList] addItem:aWebHistoryItem]; + [aWebHistoryItem release]; } // validate goback/forward buttons @@ -1805,12 +1806,13 @@ [searchInMySQLonline setEnabled:YES]; [searchInMySQLonline setTarget:self]; [webViewMenuItems insertObject:searchInMySQLonline atIndex:0]; + [searchInMySQLonline release]; searchInMySQL = [[NSMenuItem alloc] initWithTitle:NSLocalizedString(@"Search in MySQL Help", @"Search in MySQL Help") action:@selector(showHelpForWebViewSelection:) keyEquivalent:@""]; [searchInMySQL setEnabled:YES]; [searchInMySQL setTarget:self]; [webViewMenuItems insertObject:searchInMySQL atIndex:0]; - + [searchInMySQL release]; } return webViewMenuItems; |