[evolution-data-server] EDataBook: Fix reference counting of views.



commit ff87672ddfb2ab7d5e8e21b5401c9ac7d2857261
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Mar 25 17:37:34 2013 -0400

    EDataBook: Fix reference counting of views.

 addressbook/libedata-book/e-data-book-view.c |    2 --
 addressbook/libedata-book/e-data-book.c      |    2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/addressbook/libedata-book/e-data-book-view.c b/addressbook/libedata-book/e-data-book-view.c
index ba3d4de..ea70cec 100644
--- a/addressbook/libedata-book/e-data-book-view.c
+++ b/addressbook/libedata-book/e-data-book-view.c
@@ -312,8 +312,6 @@ impl_DataBookView_dispose (EGdbusBookView *object,
        view->priv->running = FALSE;
        e_book_backend_remove_view (view->priv->backend, view);
 
-       g_object_unref (view);
-
        return TRUE;
 }
 
diff --git a/addressbook/libedata-book/e-data-book.c b/addressbook/libedata-book/e-data-book.c
index 85c5bc6..587a025 100644
--- a/addressbook/libedata-book/e-data-book.c
+++ b/addressbook/libedata-book/e-data-book.c
@@ -729,6 +729,8 @@ operation_thread (gpointer data,
                                object_path);
 
                        op_complete (op->book, op->id);
+
+                       g_object_unref (view);
                        g_free (object_path);
                }
                break;


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