diff options
author | JP Rosevear <jpr@ximian.com> | 2003-04-11 16:55:11 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-04-11 16:55:11 +0800 |
commit | 1033a80696b1f2ba90d6abde012b5fa8e405ebea (patch) | |
tree | ee67931e7b5404ad7cfb7e493f860f72fc7644f4 | |
parent | bc3b18e4960f45aaf6cc1cb0cf6294bdc3dc990a (diff) | |
download | gsoc2013-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
-rw-r--r-- | calendar/ChangeLog | 6 | ||||
-rw-r--r-- | calendar/gui/e-meeting-time-sel-item.c | 12 |
2 files changed, 15 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 63a809c3fd..1786fcc55e 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,11 @@ 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 + +2003-04-11 JP Rosevear <jpr@ximian.com> + * cal-client/cal-client.c (cal_client_get_free_busy): only print a message if the exception isn't the reasonable NotFound 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); } |