aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r--calendar/gui/dialogs/comp-editor.c5
-rw-r--r--calendar/gui/dialogs/recurrence-page.c5
2 files changed, 10 insertions, 0 deletions
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;