X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=plugins%2Fkeyboard%2Ftree.c;h=c0ea2f4958071d4f97d194bd69597fe19437936e;hb=79a352a40bd16924b1ca3df49f6c82d77e956a0e;hp=b7f51888f75d396322d24f486bc59d167cd50d4a;hpb=739c958ac58154f8b1896113701e1c7f580d4cde;p=chaz%2Fopenbox diff --git a/plugins/keyboard/tree.c b/plugins/keyboard/tree.c index b7f51888..c0ea2f49 100644 --- a/plugins/keyboard/tree.c +++ b/plugins/keyboard/tree.c @@ -1,6 +1,5 @@ #include "keyboard.h" #include "translate.h" -#include "keyaction.h" #include void tree_destroy(KeyBindingTree *tree) @@ -15,7 +14,7 @@ void tree_destroy(KeyBindingTree *tree) for (it = tree->keylist; it != NULL; it = it->next) g_free(it->data); g_list_free(tree->keylist); - keyaction_free(&tree->action); + action_free(tree->action); } g_free(tree); tree = c; @@ -32,8 +31,7 @@ KeyBindingTree *tree_build(GList *keylist) for (it = g_list_last(keylist); it != NULL; it = it->prev) { p = ret; - ret = g_new(KeyBindingTree, 1); - ret->next_sibling = NULL; + ret = g_new0(KeyBindingTree, 1); if (p == NULL) { GList *it;