From e5d53ef4216a5505e0f916dc359d7f9cdff558e2 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Wed, 13 Feb 2002 21:44:01 +0000 Subject: Keep a ref of the model in this case as well. 2002-02-13 Christopher James Lahey * gui/component/select-names/e-select-names.c (set_book): Keep a ref of the model in this case as well. svn path=/trunk/; revision=15716 --- addressbook/gui/component/select-names/e-select-names.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'addressbook/gui/component') diff --git a/addressbook/gui/component/select-names/e-select-names.c b/addressbook/gui/component/select-names/e-select-names.c index 9a0d9f6805..b58b6c1748 100644 --- a/addressbook/gui/component/select-names/e-select-names.c +++ b/addressbook/gui/component/select-names/e-select-names.c @@ -137,6 +137,7 @@ set_book(EBook *book, EBookStatus status, ESelectNames *esn) update_query (NULL, esn); gtk_object_unref(GTK_OBJECT(book)); gtk_object_unref(GTK_OBJECT(esn)); + gtk_object_unref(GTK_OBJECT(esn->model)); } static void @@ -166,6 +167,7 @@ addressbook_model_set_uri(ESelectNames *e_select_names, EAddressbookModel *model book = e_book_new(); if (e_select_names) { gtk_object_ref(GTK_OBJECT(e_select_names)); + gtk_object_ref(GTK_OBJECT(model)); addressbook_load_uri(book, uri, (EBookCallback) set_book, e_select_names); } else { gtk_object_ref(GTK_OBJECT(model)); -- cgit v1.2.3