diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-15 14:48:19 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-17 08:29:14 +1000 |
commit | 69ac7f73e74a8c6c40991ef8ad3e90c6a35f7fa7 (patch) | |
tree | 71a5c8f347a5cf6343e7469b7b6b33d865920dfd | |
parent | Set textures to null when destroying (diff) | |
download | sway-69ac7f73e74a8c6c40991ef8ad3e90c6a35f7fa7.tar.gz sway-69ac7f73e74a8c6c40991ef8ad3e90c6a35f7fa7.tar.zst sway-69ac7f73e74a8c6c40991ef8ad3e90c6a35f7fa7.zip |
Destroy marks textures when view destroyed
-rw-r--r-- | sway/tree/view.c | 8 |
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) { | |||
43 | } | 43 | } |
44 | list_free(view->marks); | 44 | list_free(view->marks); |
45 | 45 | ||
46 | if (view->marks_focused) { | ||
47 | // If one is set then all of these are set | ||
48 | wlr_texture_destroy(view->marks_focused); | ||
49 | wlr_texture_destroy(view->marks_focused_inactive); | ||
50 | wlr_texture_destroy(view->marks_unfocused); | ||
51 | wlr_texture_destroy(view->marks_urgent); | ||
52 | } | ||
53 | |||
46 | container_destroy(view->swayc); | 54 | container_destroy(view->swayc); |
47 | 55 | ||
48 | if (view->impl->destroy) { | 56 | if (view->impl->destroy) { |