mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-19 08:00:36 +02:00
egl_dri2: Return NULL when xcb_get_geometry_reply fails.
This should fix bug #33946.
This commit is contained in:
parent
91ea60395e
commit
bf0c56522e
1 changed files with 1 additions and 0 deletions
|
|
@ -782,6 +782,7 @@ dri2_create_image_khr_pixmap(_EGLDisplay *disp, _EGLContext *ctx,
|
|||
_eglError(EGL_BAD_ALLOC, "xcb_get_geometry");
|
||||
free(error);
|
||||
free(buffers_reply);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
switch (geometry_reply->depth) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue