clear env vars on item destroy

This commit is contained in:
Felix Kratz 2021-12-12 14:29:51 +01:00
parent 0c78f12d43
commit 4e2ab9b2b7

View file

@ -386,6 +386,7 @@ void bar_item_destroy(struct bar_item* bar_item) {
}
if (bar_item->group && bar_item->type == BAR_COMPONENT_GROUP) group_destroy(bar_item->group);
else if (bar_item->group) group_remove_member(bar_item->group, bar_item);
env_vars_destroy(&bar_item->signal_args.env_vars);
free(bar_item);
}