aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorRyan Dwyer <ryandwyer1@gmail.com>2018-05-15 14:48:19 +1000
committerRyan Dwyer <ryandwyer1@gmail.com>2018-05-17 08:29:14 +1000
commit69ac7f73e74a8c6c40991ef8ad3e90c6a35f7fa7 (patch)
tree71a5c8f347a5cf6343e7469b7b6b33d865920dfd /sway/tree/view.c
parentb351d0a64a9d545cdfe1fe1821858cbda1f5fa4e (diff)
Destroy marks textures when view destroyed
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c8
1 files changed, 8 insertions, 0 deletions
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) {