summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorTomasz Figa <tfiga@chromium.org>2016-07-15 16:53:50 +0900
committerEmil Velikov <emil.l.velikov@gmail.com>2016-07-20 15:48:54 +0100
commit9e1248d0752e692714b58ef1f2211ec7e172c8cf (patch)
treec69560cbea06c2864b2639033326ad452f8b234b /src/glx
parent565fa6b748e952098b2e69eff4be6ac15c204043 (diff)
downloadexternal_mesa3d-9e1248d0752e692714b58ef1f2211ec7e172c8cf.zip
external_mesa3d-9e1248d0752e692714b58ef1f2211ec7e172c8cf.tar.gz
external_mesa3d-9e1248d0752e692714b58ef1f2211ec7e172c8cf.tar.bz2
egl/android: Stop leaking DRI images
Current implementation of the DRI image loader does not free the images created in get_back_bo() and so leaks memory. Moreover, it creates a new image every time the DRI driver queries for buffers, even if the backing native buffer has not changed. leaking memory again. This patch adds missing call to destroyImage() in droid_enqueue_buffer() and a check if image is already created to get_back_bo() to fix the above. Cc: "11.2 12.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Tomasz Figa <tfiga@chromium.org> Reviewed-by: Eric Anholt <eric@anholt.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'src/glx')
0 files changed, 0 insertions, 0 deletions