From 69ac7f73e74a8c6c40991ef8ad3e90c6a35f7fa7 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Tue, 15 May 2018 14:48:19 +1000 Subject: [PATCH] Destroy marks textures when view destroyed --- sway/tree/view.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sway/tree/view.c b/sway/tree/view.c index aaca8753..c0984ca4 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -43,6 +43,14 @@ void view_destroy(struct sway_view *view) { } 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); if (view->impl->destroy) {