[evolution-mapi] Bug #694786 - Ref count issue on a book view update



commit 22cc1086319803298687e49693630b78d46a0755
Author: Milan Crha <mcrha redhat com>
Date:   Wed Feb 27 14:24:08 2013 +0100

    Bug #694786 - Ref count issue on a book view update

 src/addressbook/e-book-backend-mapi.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-mapi.c b/src/addressbook/e-book-backend-mapi.c
index 276a110..203dbe1 100644
--- a/src/addressbook/e-book-backend-mapi.c
+++ b/src/addressbook/e-book-backend-mapi.c
@@ -1598,6 +1598,8 @@ e_book_backend_mapi_notify_contact_update (EBookBackendMAPI *ebma,
           it can happen when cache is filling and the book view started later */
        if (!book_view)
                book_view = ebbm_pick_book_view (ebma);
+       else
+               g_object_ref (book_view);
 
        if (book_view) {
                if (!e_book_backend_mapi_book_view_is_running (ebma, book_view)) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]