wlr_scene: Don't leak a region32 when texture failed to upload

This commit is contained in:
Alexander Orzechowski 2022-08-27 20:35:18 -04:00 committed by Simon Ser
parent fe9e193ab5
commit 78cf39b6bd

View file

@ -1058,7 +1058,7 @@ static void scene_node_render(struct wlr_scene_node *node,
struct wlr_renderer *renderer = output->renderer; struct wlr_renderer *renderer = output->renderer;
texture = scene_buffer_get_texture(scene_buffer, renderer); texture = scene_buffer_get_texture(scene_buffer, renderer);
if (texture == NULL) { if (texture == NULL) {
return; break;
} }
transform = wlr_output_transform_invert(scene_buffer->transform); transform = wlr_output_transform_invert(scene_buffer->transform);