From a2f730650072155ab39cbe591b935b19bc85cca7 Mon Sep 17 00:00:00 2001 From: Larry Ewing Date: Thu, 20 Sep 2001 05:19:37 +0000 Subject: make sure to release the ref on priv->comp. 2001-09-20 Larry Ewing * gui/dialogs/recurrence-page.c (recurrence_page_destroy): make sure to release the ref on priv->comp. * gui/dialogs/comp-editor.c (real_edit_comp): make sure to release the ref on priv->comp. svn path=/trunk/; revision=13008 --- calendar/ChangeLog | 8 ++++++++ calendar/gui/dialogs/comp-editor.c | 5 +++++ calendar/gui/dialogs/recurrence-page.c | 5 +++++ 3 files changed, 18 insertions(+) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 3e547e407c..71679c818e 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +2001-09-20 Larry Ewing + + * gui/dialogs/recurrence-page.c (recurrence_page_destroy): make + sure to release the ref on priv->comp. + + * gui/dialogs/comp-editor.c (real_edit_comp): make sure to release + the ref on priv->comp. + 2001-09-19 Federico Mena Quintero * gui/alarm-notify/alarm-queue.c (audio_notification): Display a diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index ca2b7cfe4f..1b114d9ecf 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -253,6 +253,11 @@ comp_editor_destroy (GtkObject *object) priv->window = NULL; } + if (priv->comp) { + gtk_object_unref (priv->comp); + priv->comp = NULL; + } + gtk_signal_disconnect_by_data (GTK_OBJECT (priv->client), editor); g_free (priv); diff --git a/calendar/gui/dialogs/recurrence-page.c b/calendar/gui/dialogs/recurrence-page.c index ff9485d8ff..7a1982da17 100644 --- a/calendar/gui/dialogs/recurrence-page.c +++ b/calendar/gui/dialogs/recurrence-page.c @@ -304,6 +304,11 @@ recurrence_page_destroy (GtkObject *object) priv->xml = NULL; } + if (priv->comp) { + gtk_object_unref (GTK_OBJECT (priv->comp)); + priv->comp = NULL; + } + g_free (priv); rpage->priv = NULL; -- cgit