From 9e9a8d93b3536638f85cb3fc0e5052582bc022e6 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 4 Apr 2003 14:01:47 +0000 Subject: Fixes #40722 2003-04-04 JP Rosevear Fixes #40722 * gui/e-meeting-time-sel.c (e_meeting_time_selector_destroy): guard against multiple destroy calls svn path=/trunk/; revision=20667 --- calendar/gui/e-meeting-time-sel.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'calendar/gui/e-meeting-time-sel.c') diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c index c3e6d3a051..7e21598115 100644 --- a/calendar/gui/e-meeting-time-sel.c +++ b/calendar/gui/e-meeting-time-sel.c @@ -842,12 +842,17 @@ e_meeting_time_selector_destroy (GtkObject *object) mts = E_MEETING_TIME_SELECTOR (object); e_meeting_time_selector_remove_timeout (mts); - - gdk_bitmap_unref (mts->stipple); - - if (mts->model) + + if (mts->stipple) { + gdk_bitmap_unref (mts->stipple); + mts->stipple = NULL; + } + + if (mts->model) { g_object_unref (mts->model); - + mts->model = NULL; + } + if (GTK_OBJECT_CLASS (parent_class)->destroy) (*GTK_OBJECT_CLASS (parent_class)->destroy)(object); } -- cgit