diff options
| author | Dana Jansens <danakj@orodu.net> | 2010-02-16 16:26:18 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2010-02-16 16:32:38 -0500 |
| commit | d179d6428ae585a3b8a13479bfe4586e41de2ff9 (patch) | |
| tree | 322cb58fea023dc635432cef8f06307008c8f4c8 /obt/paths.c | |
| parent | d45af3cb45f35ba639efac15675ed10b3515a7f0 (diff) | |
more using g_slice_new() instead of g_new()
Diffstat (limited to 'obt/paths.c')
| -rw-r--r-- | obt/paths.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } } |
