projects
/
dana
/
openbox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
more using g_slice_new() instead of g_new()
[dana/openbox.git]
/
obt
/
paths.c
diff --git
a/obt/paths.c
b/obt/paths.c
index
6861543
..
da6f288
100644
(file)
--- 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
);
}
}