mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-14 02:00:34 +01:00
Don't crash when eglCreateContext fails
eglCreateContext fails with every EGLConfig that nvidia blob 334.16 provides causing NULL pointer dereference in gl_renderer_destroy when destroying fragment and fan bindings. https://bugs.freedesktop.org/show_bug.cgi?id=74699 Signed-off-by: Mariusz Ceier <mceier+wayland@gmail.com>
This commit is contained in:
parent
dfaf65ba16
commit
cbb9158162
1 changed files with 4 additions and 2 deletions
|
|
@ -1766,8 +1766,10 @@ gl_renderer_destroy(struct weston_compositor *ec)
|
|||
wl_array_release(&gr->vertices);
|
||||
wl_array_release(&gr->vtxcnt);
|
||||
|
||||
weston_binding_destroy(gr->fragment_binding);
|
||||
weston_binding_destroy(gr->fan_binding);
|
||||
if (gr->fragment_binding)
|
||||
weston_binding_destroy(gr->fragment_binding);
|
||||
if (gr->fan_binding)
|
||||
weston_binding_destroy(gr->fan_binding);
|
||||
|
||||
free(gr);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue