From 7e0ae5059b00da3905fc3a9edb4fd9eac2897613 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Thu, 29 Aug 2002 03:20:28 +0000 Subject: stop the EBookViews before unreffing. 2002-08-28 Mike Kestner * gui/component/select-names/e-select-names-completion.c : stop the EBookViews before unreffing. svn path=/trunk/; revision=17910 --- .../gui/component/select-names/e-select-names-completion.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'addressbook/gui') diff --git a/addressbook/gui/component/select-names/e-select-names-completion.c b/addressbook/gui/component/select-names/e-select-names-completion.c index ae27a8c675..9a95bafbe8 100644 --- a/addressbook/gui/component/select-names/e-select-names-completion.c +++ b/addressbook/gui/component/select-names/e-select-names-completion.c @@ -753,8 +753,10 @@ e_select_names_completion_clear_book_data (ESelectNamesCompletion *comp) gtk_object_unref (GTK_OBJECT (book_data->book)); - if (book_data->book_view) + if (book_data->book_view) { + e_book_view_stop (book_data->book_view); gtk_object_unref (GTK_OBJECT (book_data->book_view)); + } g_free (book_data); } @@ -847,8 +849,10 @@ e_select_names_completion_got_book_view_cb (EBook *book, EBookStatus status, EBo } gtk_object_ref (GTK_OBJECT (view)); - if (book_data->book_view) + if (book_data->book_view) { + e_book_view_stop (book_data->book_view); gtk_object_unref (GTK_OBJECT (book_data->book_view)); + } book_data->book_view = view; book_data->card_added_tag = @@ -971,6 +975,8 @@ e_select_names_completion_stop_query (ESelectNamesCompletion *comp) if (out) fprintf (out, "unrefed book view\n"); + + e_book_view_stop (book_data->book_view); gtk_object_unref (GTK_OBJECT (book_data->book_view)); book_data->book_view = NULL; } -- cgit v1.2.3