From 74e40944c275d678c56648be54f680d5b64d704e Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Sat, 3 Nov 2001 03:08:19 +0000 Subject: Leak select-names related data structures until the memory management 2001-11-02 Jon Trowbridge * gui/component/select-names/e-select-names-bonobo.c (impl_destroy): Leak select-names related data structures until the memory management issues get sorted out. Fixed bug #14086. svn path=/trunk/; revision=14578 --- addressbook/ChangeLog | 6 ++++++ addressbook/gui/component/select-names/e-select-names-bonobo.c | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index a3f64f8c2d..2e1934ca7e 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,9 @@ +2001-11-02 Jon Trowbridge + + * gui/component/select-names/e-select-names-bonobo.c + (impl_destroy): Leak select-names related data structures until + the memory management issues get sorted out. Fixed bug #14086. + 2001-10-31 Christopher James Lahey * gui/component/e-cardlist-model.c, diff --git a/addressbook/gui/component/select-names/e-select-names-bonobo.c b/addressbook/gui/component/select-names/e-select-names-bonobo.c index abe3af3634..a3f4929fa6 100644 --- a/addressbook/gui/component/select-names/e-select-names-bonobo.c +++ b/addressbook/gui/component/select-names/e-select-names-bonobo.c @@ -356,8 +356,14 @@ impl_destroy (GtkObject *object) select_names = E_SELECT_NAMES_BONOBO (object); priv = select_names->priv; + + if (priv->manager->names) { + gtk_widget_destroy (GTK_WIDGET (priv->manager->names)); + priv->manager->names = NULL; + } - gtk_object_unref (GTK_OBJECT (priv->manager)); + /* FIXME: We leak on purpose. This sucks. */ + /* gtk_object_unref (GTK_OBJECT (priv->manager)); */ g_free (priv); } -- cgit v1.2.3