diff options
author | Christopher James Lahey <clahey@ximian.com> | 2002-02-14 05:44:01 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2002-02-14 05:44:01 +0800 |
commit | e5d53ef4216a5505e0f916dc359d7f9cdff558e2 (patch) | |
tree | a5263abe0e3c5e6af2033f9cb5ddbc1ca2bef125 /addressbook/gui | |
parent | 2cacdc5d41cbf020f57ff782efcdd6e4bf999636 (diff) | |
download | gsoc2013-evolution-e5d53ef4216a5505e0f916dc359d7f9cdff558e2.tar.gz gsoc2013-evolution-e5d53ef4216a5505e0f916dc359d7f9cdff558e2.tar.zst gsoc2013-evolution-e5d53ef4216a5505e0f916dc359d7f9cdff558e2.zip |
Keep a ref of the model in this case as well.
2002-02-13 Christopher James Lahey <clahey@ximian.com>
* 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
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)); |