From: Dana Jansens Date: Sat, 28 Jul 2007 14:44:55 +0000 (-0400) Subject: was using random memory for parsing pipe menus with the new parse api X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=2e8c9a13d4e188b538b14bd9a9d9cf31809400ed;p=chaz%2Fopenbox was using random memory for parsing pipe menus with the new parse api --- diff --git a/openbox/menu.c b/openbox/menu.c index f6d19d01..a78aa4da 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -158,7 +158,6 @@ void menu_clear_pipe_caches(void) void menu_pipe_execute(ObMenu *self) { - xmlNodePtr node; gchar *output; GError *err = NULL; @@ -179,7 +178,7 @@ void menu_pipe_execute(ObMenu *self) { menu_parse_state.pipe_creator = self; menu_parse_state.parent = self; - obt_parse_tree(menu_parse_inst, node->children); + obt_parse_tree_from_root(menu_parse_inst); obt_parse_close(menu_parse_inst); } else { g_message(_("Invalid output from pipe-menu '%s'"), self->execute);