summaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2011-02-20 12:23:54 -0700
committerChia-I Wu <[email protected]>2011-02-20 12:26:31 -0700
commitbf0c56522e21bd45ad3385e3115ef7eb71a7b8bf (patch)
tree65efdf1a3f341fe2f6ab42c7cae10d97762dfd22 /src/egl
parent91ea60395ef1fe046188b58753b2710301d07599 (diff)
egl_dri2: Return NULL when xcb_get_geometry_reply fails.
This should fix bug #33946.
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/drivers/dri2/platform_x11.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/platform_x11.c b/src/egl/drivers/dri2/platform_x11.c
index 1c7c8410c0c..50310eec5a9 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) {