aboutsummaryrefslogtreecommitdiff
path: root/src/planner.c
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-10-09 21:06:35 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-10-09 21:06:35 -0500
commitbc40e6a71d5eccf0fce96807d71d2f220207259b (patch)
treebec70f8d205010fab7460da8bd894b6e44ef959c /src/planner.c
parentba639a9fb011ad337eef8d2bd5e4bcbdca3b136a (diff)
downloadayatana-indicator-datetime-bc40e6a71d5eccf0fce96807d71d2f220207259b.tar.gz
ayatana-indicator-datetime-bc40e6a71d5eccf0fce96807d71d2f220207259b.tar.bz2
ayatana-indicator-datetime-bc40e6a71d5eccf0fce96807d71d2f220207259b.zip
move the implementation of indicator_datetime_appt_free() from planner-eds.c to planner.c
Diffstat (limited to 'src/planner.c')
-rw-r--r--src/planner.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/planner.c b/src/planner.c
index e826c2c..9b9a77f 100644
--- a/src/planner.c
+++ b/src/planner.c
@@ -259,3 +259,23 @@ indicator_datetime_planner_get_timezone (IndicatorDatetimePlanner * self)
return self->priv->timezone;
}
+
+/***
+****
+***/
+
+void
+indicator_datetime_appt_free (struct IndicatorDatetimeAppt * appt)
+{
+ if (appt != NULL)
+ {
+ g_date_time_unref (appt->end);
+ g_date_time_unref (appt->begin);
+ g_free (appt->color);
+ g_free (appt->summary);
+ g_free (appt->url);
+ g_free (appt->uid);
+ g_slice_free (struct IndicatorDatetimeAppt, appt);
+ }
+}
+