Fix a couple memory leaks.

This commit is contained in:
Scott Moynes 2003-07-19 23:58:45 +00:00
parent fd19711e6a
commit e9a8e272c0
2 changed files with 3 additions and 0 deletions

View 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;
}

View 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);