Fix a couple memory leaks.
authorScott Moynes <smoynes@nexus.carleton.ca>
Sat, 19 Jul 2003 23:58:45 +0000 (23:58 +0000)
committerScott Moynes <smoynes@nexus.carleton.ca>
Sat, 19 Jul 2003 23:58:45 +0000 (23:58 +0000)
openbox/action.c
openbox/menu.c

index a14ea7c..5f79a99 100644 (file)
@@ -589,6 +589,7 @@ Action *action_parse(xmlDocPtr doc, xmlNodePtr node)
                     act->data.sendtodir.follow = parse_bool(doc, n);
             }
         }
+        g_free(actname);
     }
     return act;
 }
index e2c55c6..f8a5efc 100644 (file)
@@ -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);