]> Dogcows Code - chaz/openbox/blobdiff - obt/paths.c
more using g_slice_new() instead of g_new()
[chaz/openbox] / obt / paths.c
index 68615433e1d9426dc58cdf462050cbe89937cf6c..da6f288bf6cf9fd62abca6bedf02c279ff7b6bba 100644 (file)
@@ -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);
     }
 }
 
This page took 0.018116 seconds and 4 git commands to generate.