aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPPreferencesUpgrade.m
diff options
context:
space:
mode:
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;
}