aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
authorbi4k8 <bi4k8-js7gse3b01w@mt2015.com>2022-06-11 20:08:17 +0000
committerSimon Ser <contact@emersion.fr>2022-06-12 06:55:06 +0000
commit369c6525d798f78231b4ce5830d30af85c7c5997 (patch)
tree3494ad04a902864e8cae0195127bfc9e5eb16ffd /render
parentf295aff7629eed3a059438a6f404950b939ea0c0 (diff)
render/egl: don't leak memory on error return
Diffstat (limited to 'render')
-rw-r--r--render/egl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/render/egl.c b/render/egl.c
index dfba8edd..168e358c 100644
--- a/render/egl.c
+++ b/render/egl.c
@@ -552,6 +552,7 @@ struct wlr_egl *wlr_egl_create_with_context(EGLDisplay display,
}
if (!egl_init_display(egl, display)) {
+ free(egl);
return NULL;
}