aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/planner-eds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/planner-eds.c b/src/planner-eds.c
index 5cf4527..1c0ffc5 100644
--- a/src/planner-eds.c
+++ b/src/planner-eds.c
@@ -54,7 +54,7 @@ indicator_datetime_appt_free (struct IndicatorDatetimeAppt * appt)
g_date_time_unref (appt->begin);
g_free (appt->color);
g_free (appt->summary);
- g_free (appt);
+ g_slice_free (struct IndicatorDatetimeAppt, appt);
}
}
@@ -146,7 +146,7 @@ my_get_appointments_foreach (ECalComponent * component,
ECalComponentText text;
struct IndicatorDatetimeAppt * appt;
- appt = g_new0 (struct IndicatorDatetimeAppt, 1);
+ appt = g_slice_new0 (struct IndicatorDatetimeAppt);
/* Determine whether this is a recurring event.
NB: icalrecurrencetype supports complex recurrence patterns;