From 0035e561038d04ff5b7ea92aaeff5346457330d7 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 17 Feb 2013 09:52:18 -0500 Subject: [PATCH] data_cal_handle_remove_objects_cb: Fix GVariant format string. --- calendar/libedata-cal/e-data-cal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calendar/libedata-cal/e-data-cal.c b/calendar/libedata-cal/e-data-cal.c index 2333e04..eeec393 100644 --- a/calendar/libedata-cal/e-data-cal.c +++ b/calendar/libedata-cal/e-data-cal.c @@ -1036,10 +1036,10 @@ data_cal_handle_remove_objects_cb (EDBusCalendar *interface, /* e_cal_component_free_id() uses g_free(), * not g_slice_free(). Therefore allocate * with g_malloc(), not g_slice_new(). */ - id = g_malloc (sizeof (ECalComponentId)); + id = g_malloc0 (sizeof (ECalComponentId)); g_variant_get_child ( - in_uid_rid_array, ii, "ss", &id->uid, &id->rid); + in_uid_rid_array, ii, "(ss)", &id->uid, &id->rid); if (id->uid != NULL && *id->uid == '\0') { e_cal_component_free_id (id); -- 2.7.4