render/egl: don't leak memory on error return

bi4k8 2 years ago committed by Simon Ser
parent f295aff762
commit 369c6525d7

@ -552,6 +552,7 @@ struct wlr_egl *wlr_egl_create_with_context(EGLDisplay display,
} }
if (!egl_init_display(egl, display)) { if (!egl_init_display(egl, display)) {
free(egl);
return NULL; return NULL;
} }

Loading…
Cancel
Save