From 3eb4762245dd2c8a872f0692071c4772d06bf787 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Sun, 5 Aug 2001 11:01:43 +0000 Subject: set op->listener to NULL to catch possible use of freed op 2001-08-05 Radek Doulik * backend/ebook/e-book.c (e_book_do_response_get_view): set op->listener to NULL to catch possible use of freed op (e_book_do_response_get_changes): ditto * backend/ebook/e-book-view-listener.c (e_book_view_listener_check_queue): this callback could be (and indeed is) called from signal emited above, signal handler could call e_book_view_listener_stop, so we need to check if idle is still set and if not we don't want to unref again svn path=/trunk/; revision=11692 --- addressbook/backend/ebook/e-book.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'addressbook/backend/ebook/e-book.c') diff --git a/addressbook/backend/ebook/e-book.c b/addressbook/backend/ebook/e-book.c index 9c8111b714..b141a71f43 100644 --- a/addressbook/backend/ebook/e-book.c +++ b/addressbook/backend/ebook/e-book.c @@ -290,6 +290,8 @@ e_book_do_response_get_view (EBook *book, } bonobo_object_unref(BONOBO_OBJECT(op->listener)); + op->listener = NULL; + g_free (op); } @@ -342,6 +344,8 @@ e_book_do_response_get_changes (EBook *book, } bonobo_object_unref(BONOBO_OBJECT(op->listener)); + op->listener = NULL; + g_free (op); } -- cgit v1.2.3