diff options
Diffstat (limited to 'calendar/gui')
-rw-r--r-- | calendar/gui/e-meeting-time-sel-item.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/calendar/gui/e-meeting-time-sel-item.c b/calendar/gui/e-meeting-time-sel-item.c index c41ac87409..e19a148e72 100644 --- a/calendar/gui/e-meeting-time-sel-item.c +++ b/calendar/gui/e-meeting-time-sel-item.c @@ -165,9 +165,15 @@ e_meeting_time_selector_item_destroy (GtkObject *object) mts_item = E_MEETING_TIME_SELECTOR_ITEM (object); - gdk_cursor_destroy (mts_item->normal_cursor); - gdk_cursor_destroy (mts_item->resize_cursor); - + if (mts_item->normal_cursor) { + gdk_cursor_destroy (mts_item->normal_cursor); + mts_item->normal_cursor = NULL; + } + if (mts_item->resize_cursor) { + gdk_cursor_destroy (mts_item->resize_cursor); + mts_item->resize_cursor = NULL; + } + if (GTK_OBJECT_CLASS (parent_class)->destroy) (*GTK_OBJECT_CLASS (parent_class)->destroy)(object); } |