mesa/src/egl/drivers/dri2
Emil Velikov a1ac742f70 egl/dri2: don't leak the fd on dri2_terminate
Currently the check was incorrect as it did not consider the (unlikely)
case of fd == 0. In order to fix this we should first correctly
initialize it to -1, as the swrast implementations leave it set to zero
(props to calloc()).

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Boyan Ding <boyan.j.ding@gmail.com>
2015-09-15 12:39:02 +01:00
..
egl_dri2.c egl/dri2: don't leak the fd on dri2_terminate 2015-09-15 12:39:02 +01:00
egl_dri2.h egl,dri_interface: use DRI2rendererQueryExtension to enable 3D textures & sRGB 2015-07-22 23:56:00 +02:00
egl_dri2_fallbacks.h
platform_android.c egl: implement EGL_KHR_gl_colorspace (v2) 2015-07-22 23:56:00 +02:00
platform_drm.c egl/dri2/drm: compact existing device mgmt 2015-09-15 12:37:27 +01:00
platform_surfaceless.c egl: Use the loader_open_device() helper to do open with CLOEXEC 2015-06-23 16:54:56 +01:00
platform_wayland.c egl/dri2: don't leak the fd on dri2_terminate 2015-09-15 12:39:02 +01:00
platform_x11.c egl/dri2: don't leak the fd on dri2_terminate 2015-09-15 12:39:02 +01:00