mesa: Avoid leaking surface in st_renderbuffer_delete
authorBartosz Tomczyk <bartosz.tomczyk86@gmail.com>
Sat, 29 Apr 2017 14:37:45 +0000 (16:37 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 30 May 2017 13:48:32 +0000 (14:48 +0100)
commitfd6c2a3f3eb7f5f3077fb95b1441ddaa43b806fe
treec8ff3a06cd854d629d4f98a6ca7df640c29e2d33
parent4c412293d0e3e38f6b4e9c10b492b8ed1d9a4a69
mesa: Avoid leaking surface in st_renderbuffer_delete

v2: add comment in code

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100741
Fixes: a5e733c6b52 mesa: drop current draw/read buffer when ctx is released
Reviewed-by: Rob Clark <robdclark@gmail.com> (v1)
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/mesa/main/context.c