2007-03-25 Matthew Barnes <mbarnes@redhat.com>
** Fixes bug #420933
* libecal/e-cal.c (e_cal_generate_instances_for_object):
Copy the recurrence ID string so it doesn't disappear on us.
Patch from Patrick Ohly.
svn path=/trunk/; revision=7664
+2007-03-25 Matthew Barnes <mbarnes@redhat.com>
+
+ ** Fixes bug #420933
+
+ * libecal/e-cal.c (e_cal_generate_instances_for_object):
+ Copy the recurrence ID string so it doesn't disappear on us.
+ Patch from Patrick Ohly.
+
2007-03-16 Matthew Barnes <mbarnes@redhat.com>
** Fixes part of bug #360240
{
ECalPrivate *priv;
ECalComponent *comp;
- const char *uid, *rid;
+ const char *uid;
+ char *rid;
gboolean result;
GList *instances = NULL;
ECalComponentDateTime datetime;
}
e_cal_component_get_uid (comp, &uid);
- rid = e_cal_component_get_recurid_as_string (comp);
+ /* string might be freed at any time, keep a copy */
+ rid = g_strdup (e_cal_component_get_recurid_as_string (comp));
/* Get the start timezone */
e_cal_component_get_dtstart (comp, &datetime);
/* clean up */
g_object_unref (comp);
g_free (instances_hold);
+ g_free (rid);
}
/* Builds a list of ECalComponentAlarms structures */