[gnome-calendar/ui-rewrite] month-view: fix double free of the passed component



commit 536330566a15257d723510055e47387da4cbffa5
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Thu Oct 16 16:51:20 2014 -0400

    month-view: fix double free of the passed component

 src/gcal-month-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-month-view.c b/src/gcal-month-view.c
index 91686aa..97311a6 100644
--- a/src/gcal-month-view.c
+++ b/src/gcal-month-view.c
@@ -1405,7 +1405,7 @@ gcal_month_view_subscriber_component_added (ECalDataModelSubscriber *subscriber,
 
   data = g_new0 (GcalEventData, 1);
   data->source = e_client_get_source (E_CLIENT (client));
-  data->event_component = comp;
+  data->event_component = e_cal_component_clone (comp);
 
   event = gcal_event_widget_new_from_data (data);
 


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