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



commit 92cd72f7480ed6f3b7f8235a31f3e384d00c33a6
Author: Matthew Barnes <mbarnes redhat com>
Date:   Mon Mar 25 17:37:47 2013 -0400

    EDataCal: Fix reference counting of views.

 calendar/libedata-cal/e-data-cal-view.c |    2 --
 calendar/libedata-cal/e-data-cal.c      |    2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/calendar/libedata-cal/e-data-cal-view.c b/calendar/libedata-cal/e-data-cal-view.c
index bdb55ac..65a1b7d 100644
--- a/calendar/libedata-cal/e-data-cal-view.c
+++ b/calendar/libedata-cal/e-data-cal-view.c
@@ -254,8 +254,6 @@ impl_DataCalView_dispose (EGdbusCalView *object,
        view->priv->stopped = TRUE;
        e_cal_backend_stop_view (view->priv->backend, view);
 
-       g_object_unref (view);
-
        return TRUE;
 }
 
diff --git a/calendar/libedata-cal/e-data-cal.c b/calendar/libedata-cal/e-data-cal.c
index 018cabc..7b79e7a 100644
--- a/calendar/libedata-cal/e-data-cal.c
+++ b/calendar/libedata-cal/e-data-cal.c
@@ -673,6 +673,8 @@ operation_thread (gpointer data,
                                object_path);
 
                        op_complete (op->cal, 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]