diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-09-07 16:58:47 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-09-07 16:58:47 +0000 |
commit | 4f7b215bc3cb14270e2825eacc57c075eedc847e (patch) | |
tree | 9861ae48d3fa1ce71cf0879bfae575ffdf203c81 /Source/SPQueryFavoriteManager.m | |
parent | 884ac3db36f3addee4183d976655a91994a5f656 (diff) | |
download | sequelpro-4f7b215bc3cb14270e2825eacc57c075eedc847e.tar.gz sequelpro-4f7b215bc3cb14270e2825eacc57c075eedc847e.tar.bz2 sequelpro-4f7b215bc3cb14270e2825eacc57c075eedc847e.zip |
• removed leaks in QueryFavoriteManager
• prepared QueryController for future steps
Diffstat (limited to 'Source/SPQueryFavoriteManager.m')
-rw-r--r-- | Source/SPQueryFavoriteManager.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPQueryFavoriteManager.m b/Source/SPQueryFavoriteManager.m index 41276769..202cfa09 100644 --- a/Source/SPQueryFavoriteManager.m +++ b/Source/SPQueryFavoriteManager.m @@ -98,7 +98,7 @@ // change will be stored in the prefs at once) if([prefs objectForKey:@"queryFavorites"]) { for(id fav in [prefs objectForKey:@"queryFavorites"]) - [favorites addObject:[fav mutableCopy]]; + [favorites addObject:[[fav mutableCopy] autorelease]]; } [favorites addObject:[NSDictionary dictionaryWithObjectsAndKeys: @@ -109,7 +109,7 @@ if([[SPQueryController sharedQueryController] favoritesForFileURL:delegatesFileURL]) { for(id fav in [[SPQueryController sharedQueryController] favoritesForFileURL:delegatesFileURL]) - [favorites addObject:[fav mutableCopy]]; + [favorites addObject:[[fav mutableCopy] autorelease]]; } |