diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-01-28 18:51:21 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-01-28 18:51:21 -0600 |
commit | ae3ac73a1a8e5a8da7aa0e4f3a3031ba0ec2f192 (patch) | |
tree | 3a48fe910b2afc0626f74d27de50032f70eadbed /src | |
parent | 65b58035b31bde014bc206ae23a6fac83e9bf3b9 (diff) | |
download | ayatana-indicator-datetime-ae3ac73a1a8e5a8da7aa0e4f3a3031ba0ec2f192.tar.gz ayatana-indicator-datetime-ae3ac73a1a8e5a8da7aa0e4f3a3031ba0ec2f192.tar.bz2 ayatana-indicator-datetime-ae3ac73a1a8e5a8da7aa0e4f3a3031ba0ec2f192.zip |
fix GDateTime leak found by valgrind testing
Diffstat (limited to 'src')
-rw-r--r-- | src/planner-eds.cpp | 6 |
1 files 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; |