From 042427ffe22c81d6c38d021cdd66e38a5e550d1e Mon Sep 17 00:00:00 2001 From: Jesse Pavel Date: Thu, 30 Nov 2000 20:00:30 +0000 Subject: fixed a bug that caused the calendar to segfault when the iTip control was * gui/e-itip-control.c: fixed a bug that caused the calendar to segfault when the iTip control was destroyed. svn path=/trunk/; revision=6741 --- calendar/ChangeLog | 5 +++++ calendar/gui/e-itip-control.c | 3 +++ 2 files changed, 8 insertions(+) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index cd96b9f05f..d135526623 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2000-11-30 Jesse Pavel + + * gui/e-itip-control.c: fixed a bug that caused the calendar to + segfault when the iTip control was destroyed. + 2000-11-30 JP Rosevear * conduits/calendar/calendar-conduit.c (local_record_from_comp): Empty diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c index d3a6a35311..476853c707 100644 --- a/calendar/gui/e-itip-control.c +++ b/calendar/gui/e-itip-control.c @@ -103,10 +103,13 @@ itip_control_destroy_cb (GtkObject *object, gtk_object_unref (GTK_OBJECT (priv->xml)); gtk_object_unref (GTK_OBJECT (priv->xml2)); + icalcomponent_remove_component (priv->main_comp, priv->comp); + if (priv->main_comp != NULL) { icalcomponent_free (priv->main_comp); } + if (priv->cal_comp != NULL) { gtk_object_unref (GTK_OBJECT (priv->cal_comp)); } -- cgit v1.2.3