aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-08-27 20:35:18 -0400
committerSimon Ser <contact@emersion.fr>2022-08-29 16:19:30 +0000
commit78cf39b6bd7e82f6d55bb6ef2707f69da150e109 (patch)
tree431fc5aba510a36007a3e51f5ec8d091e7691e4b
parentfe9e193ab5958760b1d6cbeb839fc2836bb124c9 (diff)
wlr_scene: Don't leak a region32 when texture failed to upload
-rw-r--r--types/scene/wlr_scene.c2
1 files changed, 1 insertions, 1 deletions
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);