egl/drm: plug memory leak
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 18 Jun 2015 19:16:46 +0000 (20:16 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 30 Jun 2015 16:34:11 +0000 (17:34 +0100)
commit6098ef824467f685fb34914eb3fef73b3ba18c6f
tree98c53effa311f12fbd2065df9dbadcca2625d98b
parent879dcf07f6a3ab56f23d540b0df94c57e0706094
egl/drm:  plug memory leak

Free the memory for dri2_surf in the unlikely case that one provides
NULL for native_window. Also set the relevant EGL_ERROR to provide
feedback to the user.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/egl/drivers/dri2/platform_drm.c