egl_dri2: Fix some valgrind reported leaks
authorBenjamin Franzke <benjaminfranzke@googlemail.com>
Tue, 13 Dec 2011 13:43:48 +0000 (14:43 +0100)
committerBenjamin Franzke <benjaminfranzke@googlemail.com>
Tue, 13 Dec 2011 14:32:43 +0000 (15:32 +0100)
commit2a58453e25899e726f02db005de0e1296c326845
tree35ec150d0a9aa04b0645303ecdf4e52a3601c050
parentcbd65fe14917def9c0f401c973394d6456cbe83b
egl_dri2: Fix some valgrind reported leaks

Free the device_name, reported by Pekka Paalanen.

Destroy wayland display and drm resources,
if created by dri2_initialize_wayland.
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_drm.c
src/egl/drivers/dri2/platform_wayland.c