Magellan Linux

Annotation of /trunk/hal/patches/hal-0.5.10-use-slices-for-HalProperty.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 597 - (hide annotations) (download)
Mon May 19 19:05:19 2008 UTC (16 years ago) by niro
File size: 806 byte(s)
-gentoo patches

1 niro 597 From 13d3011925c0ef257b475a84e7d19d0ad56153f0 Mon Sep 17 00:00:00 2001
2     From: Rob Taylor <rob.taylor@codethink.co.uk>
3     Date: Mon, 19 Nov 2007 16:17:02 +0000
4     Subject: [PATCH] use slices for HalProperty
5    
6     Use g_slice for HalProperty structures.
7     ---
8     hald/device.c | 4 ++--
9     1 files changed, 2 insertions(+), 2 deletions(-)
10    
11     diff --git a/hald/device.c b/hald/device.c
12     index a3b84f4..b822d76 100644
13     --- a/hald/device.c
14     +++ b/hald/device.c
15     @@ -80,14 +80,14 @@ hal_property_free (HalProperty *prop)
16     }
17     g_slist_free (prop->v.strlist_value);
18     }
19     - g_free (prop);
20     + g_slice_free (HalProperty, prop);
21     }
22    
23     static inline HalProperty *
24     hal_property_new (int type)
25     {
26     HalProperty *prop;
27     - prop = g_new0 (HalProperty, 1);
28     + prop = g_slice_new0 (HalProperty);
29     prop->type = type;
30     return prop;
31     }
32     --
33     1.5.3.7
34