From 97e6754992f9120c8b03ba91c28b0a1bdc3d2176 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 19 Oct 2006 17:36:19 +0000 Subject: [PATCH] Monotone-Parent: 21336607671cae2f88c376198194b888c617d148 Monotone-Revision: 194497a44299aa739388b0b0e04ab2b178c81471 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-19T17:36:19 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 4 ++++ UI/MailerUI/UIxMailToSelection.m | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 09dfa23c2..18e19c7ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2006-10-19 Wolfgang Sourdeau + * UI/MailerUI/UIxMailToSelection.m ([UIxMailToSelection -to]): + "to" should be retained, otherwise it will be autoreleased and a + crash will occur. + * UI/Contacts/UIxContactEditor.m ([UIxContactEditor -writeAction]): updated method to fetch the card before initing the snapshot. diff --git a/UI/MailerUI/UIxMailToSelection.m b/UI/MailerUI/UIxMailToSelection.m index 251c43be6..d8c17cbbb 100644 --- a/UI/MailerUI/UIxMailToSelection.m +++ b/UI/MailerUI/UIxMailToSelection.m @@ -114,7 +114,10 @@ static NSArray *headers = nil; mailto = [self queryParameterForKey:@"mailto"]; if ([mailto length] > 0 && ![to count]) - to = [NSArray arrayWithObject: mailto]; + { + to = [NSArray arrayWithObject: mailto]; + [to retain]; + } return self->to; }