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

This commit is contained in:
bi4k8 2022-06-11 20:08:17 +00:00 committed by Simon Ser
parent f295aff762
commit 369c6525d7
1 changed files with 1 additions and 0 deletions

View File

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