egl_dri2: fix aux buffer leak in drm platform
authorMandeep Singh Baines <mandeep.baines@gmail.com>
Tue, 10 Apr 2012 21:48:14 +0000 (14:48 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Tue, 10 Apr 2012 23:08:12 +0000 (19:08 -0400)
commit0695cf68f5afb903f93cc3779444d095b218271d
tree8cf013f9f385ab508ad3079263201b8783c58ef0
parenta27c7d80afc3160a0face4b8781bf921229bc3cc
egl_dri2: fix aux buffer leak in drm platform

Keep a reference to any newly allocated aux buffers to avoid
re-allocating for every st_framebuffer_validate() (i.e. leaking).

Signed-off-by: Mandeep Singh Baines <msb@chromium.org>
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
src/egl/drivers/dri2/platform_drm.c