From b351d0a64a9d545cdfe1fe1821858cbda1f5fa4e Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Tue, 15 May 2018 14:35:54 +1000 Subject: Set textures to null when destroying --- sway/tree/container.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sway/tree/container.c') diff --git a/sway/tree/container.c b/sway/tree/container.c index a17b20f7..47ba88a9 100644 --- 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; -- cgit v1.2.3-54-g00ecf