Destroy marks textures when view destroyed

This commit is contained in:
Ryan Dwyer 2018-05-15 14:48:19 +10:00
parent b351d0a64a
commit 69ac7f73e7

View file

@ -43,6 +43,14 @@ void view_destroy(struct sway_view *view) {
} }
list_free(view->marks); list_free(view->marks);
if (view->marks_focused) {
// If one is set then all of these are set
wlr_texture_destroy(view->marks_focused);
wlr_texture_destroy(view->marks_focused_inactive);
wlr_texture_destroy(view->marks_unfocused);
wlr_texture_destroy(view->marks_urgent);
}
container_destroy(view->swayc); container_destroy(view->swayc);
if (view->impl->destroy) { if (view->impl->destroy) {