From e9a8e272c06fd0cc1a2d93418d261886e786b16f Mon Sep 17 00:00:00 2001 From: Scott Moynes Date: Sat, 19 Jul 2003 23:58:45 +0000 Subject: [PATCH] Fix a couple memory leaks. --- openbox/action.c | 1 + openbox/menu.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/openbox/action.c b/openbox/action.c index a14ea7cc..5f79a996 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -589,6 +589,7 @@ Action *action_parse(xmlDocPtr doc, xmlNodePtr node) act->data.sendtodir.follow = parse_bool(doc, n); } } + g_free(actname); } return act; } diff --git a/openbox/menu.c b/openbox/menu.c index e2c55c6d..f8a5efc5 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -56,6 +56,7 @@ void parse_menu_full(xmlDocPtr doc, xmlNodePtr node, void *data, .parent = menu }; parent = plugin_create(plugin, &data); + g_free(plugin); } else { parent = menu; parse_menu(doc, node->xmlChildrenNode, &parent); @@ -110,6 +111,7 @@ void menu_destroy_hash_value(ObMenu *self) stacking_remove(self); RrAppearanceFree(self->a_title); + RrAppearanceFree(self->a_items); XDestroyWindow(ob_display, self->title); XDestroyWindow(ob_display, self->frame); XDestroyWindow(ob_display, self->items); -- 2.45.2