From ae3ac73a1a8e5a8da7aa0e4f3a3031ba0ec2f192 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 28 Jan 2014 18:51:21 -0600 Subject: fix GDateTime leak found by valgrind testing --- src/planner-eds.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/planner-eds.cpp b/src/planner-eds.cpp index 1fb0bd1..df62360 100644 --- a/src/planner-eds.cpp +++ b/src/planner-eds.cpp @@ -353,9 +353,9 @@ private: ECalComponentText text; text.value = ""; e_cal_component_get_summary(component, &text); - - appointment.begin = g_date_time_new_from_unix_local(begin); - appointment.end = g_date_time_new_from_unix_local(end); + + appointment.begin = DateTime(begin); + appointment.end = DateTime(end); appointment.color = subtask->color; appointment.is_event = vtype == E_CAL_COMPONENT_EVENT; appointment.summary = text.value; -- cgit v1.2.3