DOH, fixed reversed test for the presence of the icalcomp's parent. This
2000-11-24 Federico Mena Quintero <federico@helixcode.com> * cal-util/cal-component.c (free_icalcomponent): DOH, fixed reversed test for the presence of the icalcomp's parent. This was causing memory leaks in the Wombat and elsewhere. * pcs/cal-backend.c (cal_backend_set_node_timet): Plug leak. svn path=/trunk/; revision=6661
This commit is contained in:
committed by
Federico Mena Quintero
parent
39dc8f4fc8
commit
6dbbc8029f
@ -1,3 +1,11 @@
|
||||
2000-11-24 Federico Mena Quintero <federico@helixcode.com>
|
||||
|
||||
* cal-util/cal-component.c (free_icalcomponent): DOH, fixed
|
||||
reversed test for the presence of the icalcomp's parent. This was
|
||||
causing memory leaks in the Wombat and elsewhere.
|
||||
|
||||
* pcs/cal-backend.c (cal_backend_set_node_timet): Plug leak.
|
||||
|
||||
2000-11-24 Federico Mena Quintero <federico@helixcode.com>
|
||||
|
||||
* pcs/cal-backend-file.c (scan_vcalendar): Use the new libical
|
||||
|
||||
@ -211,7 +211,7 @@ free_icalcomponent (CalComponent *comp)
|
||||
|
||||
/* Free the icalcomponent */
|
||||
|
||||
if (icalcomponent_get_parent (priv->icalcomp) != NULL)
|
||||
if (icalcomponent_get_parent (priv->icalcomp) == NULL)
|
||||
icalcomponent_free (priv->icalcomp);
|
||||
|
||||
priv->icalcomp = NULL;
|
||||
|
||||
@ -471,6 +471,7 @@ cal_backend_set_node_timet (xmlNodePtr node, const char *name, time_t t)
|
||||
|
||||
tstring = g_strdup_printf ("%ld", t);
|
||||
xmlSetProp (node, name, tstring);
|
||||
g_free (tstring);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user