diff options
author | JP Rosevear <jpr@ximian.com> | 2003-04-11 05:12:39 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-04-11 05:12:39 +0800 |
commit | 796304f4d6cf47636de80cfc7bc2864cdd25a881 (patch) | |
tree | 6a150b0cbe2aae928500c103c37bd9456fe4ffd0 /calendar/gui/e-meeting-time-sel.c | |
parent | 18c82c188080ddcdc0087df2a7c12866eb224287 (diff) | |
download | gsoc2013-evolution-796304f4d6cf47636de80cfc7bc2864cdd25a881.tar.gz gsoc2013-evolution-796304f4d6cf47636de80cfc7bc2864cdd25a881.tar.zst gsoc2013-evolution-796304f4d6cf47636de80cfc7bc2864cdd25a881.zip |
Fixes #41127
2003-04-10 JP Rosevear <jpr@ximian.com>
Fixes #41127
* gui/e-meeting-time-sel.c (e_meeting_time_selector_refresh_cb):
unref here, when the callback is done
(e_meeting_time_selector_refresh_free_busy): don't unref here
* gui/e-meeting-model.c (process_free_busy): if the type is
unexpected, make sure we cleanup properly
svn path=/trunk/; revision=20807
Diffstat (limited to 'calendar/gui/e-meeting-time-sel.c')
-rw-r--r-- | calendar/gui/e-meeting-time-sel.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c index f472ed8028..a2f06acb4c 100644 --- a/calendar/gui/e-meeting-time-sel.c +++ b/calendar/gui/e-meeting-time-sel.c @@ -1227,6 +1227,8 @@ e_meeting_time_selector_refresh_cb (gpointer data) gtk_widget_queue_draw (mts->display_top); if (mts->display_main != NULL) gtk_widget_queue_draw (mts->display_main); + + gtk_object_unref (GTK_OBJECT (mts)); } static void @@ -1243,7 +1245,9 @@ e_meeting_time_selector_refresh_free_busy (EMeetingTimeSelector *mts, int row, g end.hour = 0; end.minute = 0; - /* Ref ourselves in case we are called back after destruction */ + /* Ref ourselves in case we are called back after destruction, + * we can do this because we will get a call back even after + * an error */ gtk_object_ref (GTK_OBJECT (mts)); if (all) @@ -1252,8 +1256,6 @@ e_meeting_time_selector_refresh_free_busy (EMeetingTimeSelector *mts, int row, g else e_meeting_model_refresh_busy_periods (mts->model, row, &start, &end, e_meeting_time_selector_refresh_cb, mts); - - gtk_object_unref (GTK_OBJECT (mts)); } EMeetingTimeSelectorAutopickOption |