aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPPreferencesUpgrade.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-05-02 19:36:58 +0000
committerstuconnolly <stuart02@gmail.com>2012-05-02 19:36:58 +0000
commit74843eab993bd3aac144f2d6ce5e69f76b002bd2 (patch)
tree979491b96551c262321a530d9d16ab3400a7dfb9 /Source/SPPreferencesUpgrade.m
parentf04710798a01782fddd4f7e848d8a534dedb2e7e (diff)
downloadsequelpro-74843eab993bd3aac144f2d6ce5e69f76b002bd2.tar.gz
sequelpro-74843eab993bd3aac144f2d6ce5e69f76b002bd2.tar.bz2
sequelpro-74843eab993bd3aac144f2d6ce5e69f76b002bd2.zip
Fix memory leaks.
Diffstat (limited to 'Source/SPPreferencesUpgrade.m')
-rw-r--r--Source/SPPreferencesUpgrade.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/SPPreferencesUpgrade.m b/Source/SPPreferencesUpgrade.m
index 10a86a5d..5eb7409f 100644
--- a/Source/SPPreferencesUpgrade.m
+++ b/Source/SPPreferencesUpgrade.m
@@ -337,6 +337,7 @@ void SPMigrateConnectionFavoritesData(void)
if (error) {
NSLog(@"Error loading favorites: %@", [error localizedDescription]);
+ [favorites release];
return;
}
@@ -367,6 +368,7 @@ void SPMigrateConnectionFavoritesData(void)
else if (errorString) {
NSLog(@"Error converting migrating favorites data to plist format: %@", errorString);
+ [favorites release];
[errorString release];
return;
}