egl_dri2: do not leak dri2_dpy->driver_configs
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 23 Oct 2014 16:27:01 +0000 (17:27 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 6 Nov 2014 13:23:51 +0000 (13:23 +0000)
commitba0bb4227e5d32619e83765f5967a069766996af
tree44ba9e3578d1dba1ee119cae5d0778078567f2cb
parent54a065d9a62be4d82fb7f4b0af52acea8fd2de73
egl_dri2: do not leak dri2_dpy->driver_configs

Walk through the list and free each config, and finally free the list
itself. Freeing approx 20KiB of memory, according to valgrind.
Inspired by a similar patch by enpeng xu.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
src/egl/drivers/dri2/egl_dri2.c