aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util/cal-component.c
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-11-25 07:51:35 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-11-25 07:51:35 +0800
commit6dbbc8029fcde97f504d7850b36282c91b2a4dc6 (patch)
tree425084e867c4b233d8e6fafafa15c8a208b17797 /calendar/cal-util/cal-component.c
parent39dc8f4fc8a9e459689ee61a197270d8e23e68de (diff)
downloadgsoc2013-evolution-6dbbc8029fcde97f504d7850b36282c91b2a4dc6.tar.gz
gsoc2013-evolution-6dbbc8029fcde97f504d7850b36282c91b2a4dc6.tar.zst
gsoc2013-evolution-6dbbc8029fcde97f504d7850b36282c91b2a4dc6.zip
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
Diffstat (limited to 'calendar/cal-util/cal-component.c')
-rw-r--r--calendar/cal-util/cal-component.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/calendar/cal-util/cal-component.c b/calendar/cal-util/cal-component.c
index a60333589c..05c84f1233 100644
--- a/calendar/cal-util/cal-component.c
+++ b/calendar/cal-util/cal-component.c
@@ -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;