From a86bcdd036ea915f23e3532748ca726de039d584 Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Fri, 7 Dec 2001 00:17:04 +0000 Subject: Explicitly destroy the EMeetingModel. This is a hack to work around 2001-12-06 Jon Trowbridge * gui/dialogs/event-editor.c (event_editor_destroy): Explicitly destroy the EMeetingModel. This is a hack to work around problems with the reference counting; we are still leaking the EMeetingModels. * gui/e-meeting-time-sel.c (e_meeting_time_selector_construct): Ref our EMeetingModel. (e_meeting_time_selector_destroy): Unref the model. * gui/e-meeting-model.c (destroy): Properly destroy corba_select_names with a call to bonobo_object_release_unref. (Fixes 14002) svn path=/trunk/; revision=14919 --- calendar/gui/e-meeting-time-sel.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'calendar/gui/e-meeting-time-sel.c') diff --git a/calendar/gui/e-meeting-time-sel.c b/calendar/gui/e-meeting-time-sel.c index 0decccb9ef..4456ccafed 100644 --- a/calendar/gui/e-meeting-time-sel.c +++ b/calendar/gui/e-meeting-time-sel.c @@ -347,6 +347,8 @@ e_meeting_time_selector_construct (EMeetingTimeSelector * mts, EMeetingModel *em /* build the etable */ filename = g_strdup_printf ("%s/config/et-header-meeting-time-sel", evolution_dir); mts->model = emm; + if (mts->model) + gtk_object_ref (GTK_OBJECT (mts->model)); gtk_signal_connect (GTK_OBJECT (mts->model), "model_rows_inserted", GTK_SIGNAL_FUNC (row_count_changed_cb), mts); @@ -855,6 +857,9 @@ e_meeting_time_selector_destroy (GtkObject *object) gdk_color_context_free (mts->color_context); gdk_bitmap_unref (mts->stipple); + + if (mts->model) + gtk_object_unref (GTK_OBJECT (mts->model)); if (GTK_OBJECT_CLASS (parent_class)->destroy) (*GTK_OBJECT_CLASS (parent_class)->destroy)(object); -- cgit v1.2.3