aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2002-09-26 02:50:34 +0800
committerChris Toshok <toshok@src.gnome.org>2002-09-26 02:50:34 +0800
commit7aaf603811ea4853f71edfbc407ed074588e6d5f (patch)
tree65a65ef404afeb9df35d31203b0e7570955f486d /addressbook/gui/widgets
parent6a5efeb0f98a88afbbe18af740df7a209bb1c71b (diff)
downloadgsoc2013-evolution-7aaf603811ea4853f71edfbc407ed074588e6d5f.tar
gsoc2013-evolution-7aaf603811ea4853f71edfbc407ed074588e6d5f.tar.gz
gsoc2013-evolution-7aaf603811ea4853f71edfbc407ed074588e6d5f.tar.bz2
gsoc2013-evolution-7aaf603811ea4853f71edfbc407ed074588e6d5f.tar.lz
gsoc2013-evolution-7aaf603811ea4853f71edfbc407ed074588e6d5f.tar.xz
gsoc2013-evolution-7aaf603811ea4853f71edfbc407ed074588e6d5f.tar.zst
gsoc2013-evolution-7aaf603811ea4853f71edfbc407ed074588e6d5f.zip
free adapter->priv.
2002-09-23 Chris Toshok <toshok@ximian.com> * gui/widgets/e-addressbook-table-adapter.c (addressbook_destroy): free adapter->priv. * gui/widgets/e-addressbook-model.c (addressbook_destroy): free model->query. * gui/component/select-names/e-select-names-manager.c (load_completion_books): use e_book_expand_uri here, and free the expanded uri after calling addressbook_load_uri, plugging a leak. * gui/component/select-names/e-select-names.c (set_book): unref esn->model before we unref esn. fixes an edge case memory corruption bug. (clear_widget): utility function to set a widget's ref to NULL when it's destroyed. (e_select_names_init): hook the status_message, categories option menu, and select_entry to clear_widget. (addressbook_model_set_uri): use e_book_expand_uri. svn path=/trunk/; revision=18217
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r--addressbook/gui/widgets/e-addressbook-model.c2
-rw-r--r--addressbook/gui/widgets/e-addressbook-table-adapter.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-model.c b/addressbook/gui/widgets/e-addressbook-model.c
index 7f59c2313c..9244df8a38 100644
--- a/addressbook/gui/widgets/e-addressbook-model.c
+++ b/addressbook/gui/widgets/e-addressbook-model.c
@@ -125,6 +125,8 @@ addressbook_destroy(GtkObject *object)
gtk_object_unref(GTK_OBJECT(model->book));
model->book = NULL;
}
+
+ g_free (model->query);
}
static void
diff --git a/addressbook/gui/widgets/e-addressbook-table-adapter.c b/addressbook/gui/widgets/e-addressbook-table-adapter.c
index 08c03863aa..abcaf6e6b0 100644
--- a/addressbook/gui/widgets/e-addressbook-table-adapter.c
+++ b/addressbook/gui/widgets/e-addressbook-table-adapter.c
@@ -85,6 +85,8 @@ addressbook_destroy(GtkObject *object)
EAddressbookTableAdapter *adapter = E_ADDRESSBOOK_TABLE_ADAPTER(object);
unlink_model(adapter);
+
+ g_free (adapter->priv);
}
/* This function returns the number of columns in our ETableModel. */