diff options
author | JP Rosevear <jpr@ximian.com> | 2003-04-04 22:01:47 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-04-04 22:01:47 +0800 |
commit | 9e9a8d93b3536638f85cb3fc0e5052582bc022e6 (patch) | |
tree | 559c97074d73931ab2a189e34c2ccb7d4c46bb87 /calendar/gui | |
parent | 46b7c0bd86fbe4b979198e90d0020a14e3998b67 (diff) | |
download | gsoc2013-evolution-9e9a8d93b3536638f85cb3fc0e5052582bc022e6.tar.gz gsoc2013-evolution-9e9a8d93b3536638f85cb3fc0e5052582bc022e6.tar.zst gsoc2013-evolution-9e9a8d93b3536638f85cb3fc0e5052582bc022e6.zip |
Fixes #40722
2003-04-04 JP Rosevear <jpr@ximian.com>
Fixes #40722
* gui/e-meeting-time-sel.c (e_meeting_time_selector_destroy):
guard against multiple destroy calls
svn path=/trunk/; revision=20667
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-meeting-time-sel.c | 15 |
1 files changed, 10 insertions, 5 deletions
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); } |