aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-09-05 12:58:03 -0500
committerCharles Kerr <charles.kerr@canonical.com>2013-09-05 12:58:03 -0500
commit7ecf093c9ae63453babe3fd3fffcc26f6115fb58 (patch)
tree6c813859fdbfeb501a88911966070bacc101936c
parent5882af6e786766022e6f927052820b22db0451af (diff)
downloadayatana-indicator-datetime-7ecf093c9ae63453babe3fd3fffcc26f6115fb58.tar.gz
ayatana-indicator-datetime-7ecf093c9ae63453babe3fd3fffcc26f6115fb58.tar.bz2
ayatana-indicator-datetime-7ecf093c9ae63453babe3fd3fffcc26f6115fb58.zip
use GSlice for allocating/freeing indicator appt structs
-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;