]> Dogcows Code - chaz/openbox/commitdiff
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 a14ea7cce6f0a8d3f7ca80570d2e22e182927e46..5f79a996a287c19956a4ed896e6af48334aa2547 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 e2c55c6de15d05cfb0e5bb9c220d93c410deb841..f8a5efc5d9ea10500d7e3dce4baa4a4a0eda6906 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);
This page took 0.023833 seconds and 4 git commands to generate.