From d179d6428ae585a3b8a13479bfe4586e41de2ff9 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 16 Feb 2010 16:26:18 -0500 Subject: more using g_slice_new() instead of g_new() --- obt/paths.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'obt/paths.c') diff --git a/obt/paths.c b/obt/paths.c index 68615433..da6f288b 100644 --- a/obt/paths.c +++ b/obt/paths.c @@ -80,7 +80,7 @@ ObtPaths* obt_paths_new(void) ObtPaths *p; const gchar *path; - p = g_new0(ObtPaths, 1); + p = g_slice_new0(ObtPaths); p->ref = 1; path = g_getenv("XDG_CONFIG_HOME"); @@ -163,7 +163,7 @@ void obt_paths_unref(ObtPaths *p) g_free(p->data_home); g_free(p->cache_home); - obt_free0(p, ObtPaths, 1); + g_slice_free(ObtPaths, p); } } -- cgit v1.2.3