aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorLarry Ewing <lewing@ximian.com>2001-09-20 13:19:37 +0800
committerLarry Ewing <lewing@src.gnome.org>2001-09-20 13:19:37 +0800
commita2f730650072155ab39cbe591b935b19bc85cca7 (patch)
treef1abcdc9ddd876abbba1b77cbc1e660f9ab2a4a8 /calendar
parentcfad07e359064567d8723407aa0163489e21673d (diff)
downloadgsoc2013-evolution-a2f730650072155ab39cbe591b935b19bc85cca7.tar
gsoc2013-evolution-a2f730650072155ab39cbe591b935b19bc85cca7.tar.gz
gsoc2013-evolution-a2f730650072155ab39cbe591b935b19bc85cca7.tar.bz2
gsoc2013-evolution-a2f730650072155ab39cbe591b935b19bc85cca7.tar.lz
gsoc2013-evolution-a2f730650072155ab39cbe591b935b19bc85cca7.tar.xz
gsoc2013-evolution-a2f730650072155ab39cbe591b935b19bc85cca7.tar.zst
gsoc2013-evolution-a2f730650072155ab39cbe591b935b19bc85cca7.zip
make sure to release the ref on priv->comp.
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. svn path=/trunk/; revision=13008
Diffstat (limited to 'calendar')
-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;