diff options
-rw-r--r-- | addressbook/ChangeLog | 5 | ||||
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 68ba8f5300..4bfaccc9ee 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,5 +1,10 @@ 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. + +2002-02-13 Christopher James Lahey <clahey@ximian.com> + * gui/component/select-names/e-select-names.c (set_book): Make sure to only set the query once when creating a new book and not at all on addressbook model creation. This prevents an accidental 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)); |