[evolution-data-server] e_cal_backend_add_view(): Keep a reference on the view being added.



commit 25f8db47c045e7256e0724c6e12770df11043d82
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Mar 26 14:12:08 2013 -0400

    e_cal_backend_add_view(): Keep a reference on the view being added.

 calendar/libedata-cal/e-cal-backend.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/calendar/libedata-cal/e-cal-backend.c b/calendar/libedata-cal/e-cal-backend.c
index d4f3894..5e31a6b 100644
--- a/calendar/libedata-cal/e-cal-backend.c
+++ b/calendar/libedata-cal/e-cal-backend.c
@@ -991,6 +991,7 @@ e_cal_backend_add_view (ECalBackend *backend,
 
        g_mutex_lock (&backend->priv->views_mutex);
 
+       g_object_ref (view);
        backend->priv->views = g_list_append (backend->priv->views, view);
 
        g_mutex_unlock (&backend->priv->views_mutex);


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