aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-04-11 16:55:11 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-04-11 16:55:11 +0800
commit1033a80696b1f2ba90d6abde012b5fa8e405ebea (patch)
treeee67931e7b5404ad7cfb7e493f860f72fc7644f4 /calendar/gui
parentbc3b18e4960f45aaf6cc1cb0cf6294bdc3dc990a (diff)
downloadgsoc2013-evolution-1033a80696b1f2ba90d6abde012b5fa8e405ebea.tar
gsoc2013-evolution-1033a80696b1f2ba90d6abde012b5fa8e405ebea.tar.gz
gsoc2013-evolution-1033a80696b1f2ba90d6abde012b5fa8e405ebea.tar.bz2
gsoc2013-evolution-1033a80696b1f2ba90d6abde012b5fa8e405ebea.tar.lz
gsoc2013-evolution-1033a80696b1f2ba90d6abde012b5fa8e405ebea.tar.xz
gsoc2013-evolution-1033a80696b1f2ba90d6abde012b5fa8e405ebea.tar.zst
gsoc2013-evolution-1033a80696b1f2ba90d6abde012b5fa8e405ebea.zip
guard against multiple destroy calls
2003-04-11 JP Rosevear <jpr@ximian.com> * gui/e-meeting-time-sel-item.c (e_meeting_time_selector_item_destroy): guard against multiple destroy calls svn path=/trunk/; revision=20813
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/e-meeting-time-sel-item.c12
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);
}