egl_dri2: Return NULL when xcb_get_geometry_reply fails.

This should fix bug #33946.
This commit is contained in:
Chia-I Wu 2011-02-20 12:23:54 -07:00
parent 91ea60395e
commit bf0c56522e

View file

@ -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) {