[gnome-calendar] month-view: fix double free of the passed component
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] month-view: fix double free of the passed component
- Date: Thu, 4 Dec 2014 22:37:07 +0000 (UTC)
commit a9b302b2051a66cd95c39302f3ad8e4559a7439a
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]