aboutsummaryrefslogtreecommitdiff
path: root/render/pixman
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2021-10-26 18:47:19 +0200
committerSimon Zeni <simon@bl4ckb0ne.ca>2021-10-27 07:30:36 -0600
commit4fb652c27f68d9b8c3b125f51efe17dbd66a1084 (patch)
treee7670e7eda458776d889300f76912398a26ada21 /render/pixman
parentebe3cfaceb77ca3b446fa52af6aedc89c98770e5 (diff)
render/pixman/renderer.c: Fix memory-leak in create_buffer
Found via scan-build
Diffstat (limited to 'render/pixman')
-rw-r--r--render/pixman/renderer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/pixman/renderer.c b/render/pixman/renderer.c
index 2ae05d00..c65523b0 100644
--- a/render/pixman/renderer.c
+++ b/render/pixman/renderer.c
@@ -108,7 +108,7 @@ static struct wlr_pixman_buffer *create_buffer(
if (format == 0) {
wlr_log(WLR_ERROR, "Unsupported pixman drm format 0x%"PRIX32,
drm_format);
- return NULL;
+ goto error_buffer;
}
buffer->image = pixman_image_create_bits(format, wlr_buffer->width,