From 78cf39b6bd7e82f6d55bb6ef2707f69da150e109 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Sat, 27 Aug 2022 20:35:18 -0400 Subject: wlr_scene: Don't leak a region32 when texture failed to upload --- types/scene/wlr_scene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index 3088db7c..d963e70a 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -1058,7 +1058,7 @@ static void scene_node_render(struct wlr_scene_node *node, struct wlr_renderer *renderer = output->renderer; texture = scene_buffer_get_texture(scene_buffer, renderer); if (texture == NULL) { - return; + break; } transform = wlr_output_transform_invert(scene_buffer->transform); -- cgit v1.2.3