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 /openbox/keytree.c | |
| parent | d45af3cb45f35ba639efac15675ed10b3515a7f0 (diff) | |
more using g_slice_new() instead of g_new()
Diffstat (limited to 'openbox/keytree.c')
| -rw-r--r-- | openbox/keytree.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openbox/keytree.c b/openbox/keytree.c index ca64385a..93a0c7aa 100644 --- a/openbox/keytree.c +++ b/openbox/keytree.c @@ -39,7 +39,7 @@ void tree_destroy(KeyBindingTree *tree) actions_act_unref(sit->data); g_slist_free(tree->actions); } - g_free(tree); + g_slice_free(KeyBindingTree, tree); tree = c; } } @@ -56,7 +56,7 @@ KeyBindingTree *tree_build(GList *keylist) GList *kit; p = ret; - ret = g_new0(KeyBindingTree, 1); + ret = g_slice_new0(KeyBindingTree); for (kit = it; kit != NULL; kit = g_list_previous(kit)) ret->keylist = g_list_prepend(ret->keylist, @@ -87,7 +87,7 @@ void tree_assimilate(KeyBindingTree *node) } else { tmp = b; b = b->first_child; - g_free(tmp); + g_slice_free(KeyBindingTree, tmp); a = a->first_child; } } @@ -99,7 +99,7 @@ void tree_assimilate(KeyBindingTree *node) } else { last->first_child = b->first_child; last->first_child->parent = last; - g_free(b); + g_slice_free(KeyBindingTree, b); } } } |
