Set textures to null when destroying

master
Ryan Dwyer 7 years ago
parent 5384fdcbc6
commit b351d0a64a

@ -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;

@ -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;

Loading…
Cancel
Save