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

Alexander Orzechowski 2 years ago committed by Simon Ser
parent fe9e193ab5
commit 78cf39b6bd

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

Loading…
Cancel
Save