diff options
author | Ryan Dwyer <[email protected]> | 2018-05-15 14:35:54 +1000 |
---|---|---|
committer | Ryan Dwyer <[email protected]> | 2018-05-17 08:29:14 +1000 |
commit | b351d0a64a9d545cdfe1fe1821858cbda1f5fa4e (patch) | |
tree | 3408b89a08a3786bab38140344fc78c74b2f17cc /sway/tree/view.c | |
parent | 5384fdcbc64c90be01dcfe4067dd9a2a9328f053 (diff) |
Set textures to null when destroying
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 8db5c9d5..aaca8753 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -779,6 +779,7 @@ static void update_marks_texture(struct sway_view *view, } if (*texture) { wlr_texture_destroy(*texture); + *texture = NULL; } if (!view->marks->length) { return; |