Fix a couple memory leaks.
This commit is contained in:
parent
fd19711e6a
commit
e9a8e272c0
2 changed files with 3 additions and 0 deletions
|
@ -589,6 +589,7 @@ Action *action_parse(xmlDocPtr doc, xmlNodePtr node)
|
||||||
act->data.sendtodir.follow = parse_bool(doc, n);
|
act->data.sendtodir.follow = parse_bool(doc, n);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
g_free(actname);
|
||||||
}
|
}
|
||||||
return act;
|
return act;
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,6 +56,7 @@ void parse_menu_full(xmlDocPtr doc, xmlNodePtr node, void *data,
|
||||||
.parent = menu
|
.parent = menu
|
||||||
};
|
};
|
||||||
parent = plugin_create(plugin, &data);
|
parent = plugin_create(plugin, &data);
|
||||||
|
g_free(plugin);
|
||||||
} else {
|
} else {
|
||||||
parent = menu;
|
parent = menu;
|
||||||
parse_menu(doc, node->xmlChildrenNode, &parent);
|
parse_menu(doc, node->xmlChildrenNode, &parent);
|
||||||
|
@ -110,6 +111,7 @@ void menu_destroy_hash_value(ObMenu *self)
|
||||||
stacking_remove(self);
|
stacking_remove(self);
|
||||||
|
|
||||||
RrAppearanceFree(self->a_title);
|
RrAppearanceFree(self->a_title);
|
||||||
|
RrAppearanceFree(self->a_items);
|
||||||
XDestroyWindow(ob_display, self->title);
|
XDestroyWindow(ob_display, self->title);
|
||||||
XDestroyWindow(ob_display, self->frame);
|
XDestroyWindow(ob_display, self->frame);
|
||||||
XDestroyWindow(ob_display, self->items);
|
XDestroyWindow(ob_display, self->items);
|
||||||
|
|
Loading…
Reference in a new issue