[evolution-ews] ref cal when needed



commit 7bfa0d19e1f9afd1649c312309c969d3a2ad0d19
Author: Or Goshen <orx goshen intel com>
Date:   Wed Aug 17 10:50:57 2011 +0300

    ref cal when needed

 src/calendar/e-cal-backend-ews.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/calendar/e-cal-backend-ews.c b/src/calendar/e-cal-backend-ews.c
index 7c4c33f..6bfd8bf 100644
--- a/src/calendar/e-cal-backend-ews.c
+++ b/src/calendar/e-cal-backend-ews.c
@@ -1396,7 +1396,7 @@ ews_create_object_cb(GObject *object, GAsyncResult *res, gpointer user_data)
 
 		attach_data->cbews = g_object_ref (create_data->cbews);
 		attach_data->comp = g_object_ref (create_data->comp);
-		attach_data->cal = create_data->cal;
+		attach_data->cal = g_object_ref (create_data->cal);
 		attach_data->context = create_data->context;
 		attach_data->cb_type = 1;
 



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