diff options
-rw-r--r-- | src/planner-eds.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/planner-eds.cpp b/src/planner-eds.cpp index df62360..98cfe0a 100644 --- a/src/planner-eds.cpp +++ b/src/planner-eds.cpp @@ -251,8 +251,12 @@ private: { const auto begin = g_date_time_to_unix(begin_dt); const auto end = g_date_time_to_unix(end_dt); - g_debug("getting all appointments from [%s ... %s]", g_date_time_format(begin_dt, "%F %T"), - g_date_time_format(end_dt, "%F %T")); + + auto begin_str = g_date_time_format(begin_dt, "%F %T"); + auto end_str = g_date_time_format(end_dt, "%F %T"); + g_debug("getting all appointments from [%s ... %s]", begin_str, end_str); + g_free(begin_str); + g_free(end_str); /** *** init the default timezone |