[evolution-data-server] Bug 789677 - [ECalClient] Incorrect free call in process_detached_instances()
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug 789677 - [ECalClient] Incorrect free call in process_detached_instances()
- Date: Tue, 31 Oct 2017 07:25:01 +0000 (UTC)
commit c6ce97e6e8cf4e1ee7f34f6a04aed64260bdf243
Author: Jan Alexander Steffens (heftig) <jan steffens gmail com>
Date: Tue Oct 31 08:24:17 2017 +0100
Bug 789677 - [ECalClient] Incorrect free call in process_detached_instances()
src/calendar/libecal/e-cal-client.c | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/calendar/libecal/e-cal-client.c b/src/calendar/libecal/e-cal-client.c
index a4143ec..62efe0a 100644
--- a/src/calendar/libecal/e-cal-client.c
+++ b/src/calendar/libecal/e-cal-client.c
@@ -2493,12 +2493,12 @@ process_detached_instances (GSList *instances,
GSList *il;
const gchar *uid;
gboolean processed;
- ECalComponentRange recur_id, instance_recur_id;
+ ECalComponentRange recur_id;
time_t d_rid, i_rid;
processed = FALSE;
recur_id.type = E_CAL_COMPONENT_RANGE_SINGLE;
- instance_recur_id.type = E_CAL_COMPONENT_RANGE_SINGLE;
+ recur_id.datetime.value = NULL;
cid = dl->data;
e_cal_component_get_uid (cid->comp, &uid);
@@ -2518,6 +2518,11 @@ process_detached_instances (GSList *instances,
e_cal_component_get_uid (ci->comp, &instance_uid);
if (strcmp (uid, instance_uid) == 0) {
+ ECalComponentRange instance_recur_id;
+
+ instance_recur_id.type = E_CAL_COMPONENT_RANGE_SINGLE;
+ instance_recur_id.datetime.value = NULL;
+
e_cal_component_get_recurid (ci->comp, &instance_recur_id);
if (!instance_recur_id.datetime.value) {
@@ -2558,8 +2563,9 @@ process_detached_instances (GSList *instances,
ci->comp = comp;
}
}
+
+ e_cal_component_free_range (&instance_recur_id);
}
- e_cal_component_free_range (&instance_recur_id);
}
e_cal_component_free_datetime (&recur_id.datetime);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]