aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}