From: Chia-I Wu Date: Sun, 20 Feb 2011 19:23:54 +0000 (-0700) Subject: egl_dri2: Return NULL when xcb_get_geometry_reply fails. X-Git-Tag: mesa-7.11-rc1~1986 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf0c56522e21bd45ad3385e3115ef7eb71a7b8bf;p=platform%2Fupstream%2Fmesa.git egl_dri2: Return NULL when xcb_get_geometry_reply fails. This should fix bug #33946. --- diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c index 1c7c841..50310ee 100644 --- a/src/egl/drivers/dri2/platform_x11.c +++ b/src/egl/drivers/dri2/platform_x11.c @@ -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) {