From 988df04587a2dc59554961056baba7fa26308246 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Thu, 26 Nov 2009 16:59:29 +0000 Subject: [PATCH] See ChangeLog Monotone-Parent: bd604d08baed0cf7905c0c78a513a7e7a9621223 Monotone-Revision: 5cb63d3b6d43af52102d0fcf33a7587994776330 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2009-11-26T16:59:29 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 3 +++ UI/PreferencesUI/UIxPreferences.m | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index d3bd2b0f3..3534d4fed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,9 @@ when forwarding a mail with attachments and no Content-Disposition header (or filename) was found. This avoid losing attachments when forwarding mails. + * UI/PreferencesUI/UIxPreferences.m + We retain/release properly the vacationOptions and + forwardOptions ivars. 2009-11-24 Francis Lachapelle diff --git a/UI/PreferencesUI/UIxPreferences.m b/UI/PreferencesUI/UIxPreferences.m index 1cf274af4..f26986909 100644 --- a/UI/PreferencesUI/UIxPreferences.m +++ b/UI/PreferencesUI/UIxPreferences.m @@ -109,7 +109,9 @@ static BOOL forwardEnabled = NO; vacationOptions = [NSMutableDictionary dictionary]; [userDefaults setObject: vacationOptions forKey: @"Vacation"]; } + [vacationOptions retain]; } + if (forwardEnabled) { forwardOptions = [userDefaults objectForKey: @"Forward"]; @@ -118,6 +120,7 @@ static BOOL forwardEnabled = NO; forwardOptions = [NSMutableDictionary dictionary]; [userDefaults setObject: forwardOptions forKey: @"Forward"]; } + [forwardOptions retain]; } } @@ -130,6 +133,8 @@ static BOOL forwardEnabled = NO; [item release]; [user release]; [userDefaults release]; + [vacationOptions release]; + [forwardOptions release]; [hours release]; [daysOfWeek release]; [locale release];