commit b351d0a64a9d545cdfe1fe1821858cbda1f5fa4e
parent 5384fdcbc64c90be01dcfe4067dd9a2a9328f053
Author: Ryan Dwyer <ryandwyer1@gmail.com>
Date: Tue, 15 May 2018 14:35:54 +1000
Set textures to null when destroying
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/sway/tree/container.c b/sway/tree/container.c
@@ -592,6 +592,7 @@ static void update_title_texture(struct sway_container *con,
}
if (*texture) {
wlr_texture_destroy(*texture);
+ *texture = NULL;
}
if (!con->formatted_title) {
return;
diff --git 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;