aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-meeting-time-sel.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/e-meeting-time-sel.c')
-rw-r--r--calendar/gui/e-meeting-time-sel.c15
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);
}