From 13d3011925c0ef257b475a84e7d19d0ad56153f0 Mon Sep 17 00:00:00 2001 From: Rob Taylor Date: Mon, 19 Nov 2007 16:17:02 +0000 Subject: [PATCH] use slices for HalProperty Use g_slice for HalProperty structures. --- hald/device.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hald/device.c b/hald/device.c index a3b84f4..b822d76 100644 --- a/hald/device.c +++ b/hald/device.c @@ -80,14 +80,14 @@ hal_property_free (HalProperty *prop) } g_slist_free (prop->v.strlist_value); } - g_free (prop); + g_slice_free (HalProperty, prop); } static inline HalProperty * hal_property_new (int type) { HalProperty *prop; - prop = g_new0 (HalProperty, 1); + prop = g_slice_new0 (HalProperty); prop->type = type; return prop; } -- 1.5.3.7