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/ChangeLog | 7 +++++++ calendar/gui/e-meeting-time-sel.c | 15 ++++++++++----- 2 files changed, 17 insertions(+), 5 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 3cee6b137e..19767e969b 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,10 @@ +2003-04-04 JP Rosevear + + Fixes #40722 + + * gui/e-meeting-time-sel.c (e_meeting_time_selector_destroy): + guard against multiple destroy calls + 2003-04-02 Jeffrey Stedfast * gui/control-factory.c (set_prop): Add a check to see if the view 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 v1.2.3