From b5a2244030407c316e612bdc26b4f305f7ce2818 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 30 Jun 2009 21:34:17 +0000 Subject: [PATCH] Monotone-Parent: 4fa44f713c3899d8e5db6b47ffb8672ce37547d5 Monotone-Revision: f3b827c36d50cd87aed46a81e25ef2e3cc3a7e58 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2009-06-30T21:34:17 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 2 ++ SoObjects/Appointments/SOGoAppointmentFolder.m | 1 + 2 files changed, 3 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6405b737e..d747b426d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,8 @@ corresponding fields to "". Also, we make sure those fake fields are not specified in the SQL query and we ensure all the fields are only requested once each. + (-davCalendarComponentSet): we need to retain the returned + array to avoid a crash during the next access to the attribute. 2009-06-30 Cyril Robert diff --git a/SoObjects/Appointments/SOGoAppointmentFolder.m b/SoObjects/Appointments/SOGoAppointmentFolder.m index b3aa10786..7a6295296 100644 --- a/SoObjects/Appointments/SOGoAppointmentFolder.m +++ b/SoObjects/Appointments/SOGoAppointmentFolder.m @@ -2252,6 +2252,7 @@ firstInstanceCalendarDateRange: (NGCalendarDateRange *) fir XMLNS_CALDAV, components) asWebDAVValue]; + [componentSet retain]; } return componentSet;