mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-04 13:29:45 -05:00
render/egl: don't leak memory on error return
This commit is contained in:
parent
f295aff762
commit
369c6525d7
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue