aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendar/ChangeLog8
-rw-r--r--calendar/gui/dialogs/comp-editor.c5
-rw-r--r--calendar/gui/dialogs/recurrence-page.c5
3 files changed, 18 insertions, 0 deletions
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 <lewing@ximian.com>
+
+ * 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 <federico@ximian.com>
* 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;