summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorScott Moynes <smoynes@nexus.carleton.ca>2003-07-19 23:58:45 +0000
committerScott Moynes <smoynes@nexus.carleton.ca>2003-07-19 23:58:45 +0000
commite9a8e272c06fd0cc1a2d93418d261886e786b16f (patch)
treecc039348afd2f2ae22b9d94f4b4879e275649e16 /openbox
parentfd19711e6a7cdc63f10b79cedc7ff54d7a9d2e81 (diff)
Fix a couple memory leaks.
Diffstat (limited to 'openbox')
-rw-r--r--openbox/action.c1
-rw-r--r--openbox/menu.c2
2 files changed, 3 insertions, 0 deletions
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);