gallium/util: fix memory-leak
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 1 Oct 2020 11:25:08 +0000 (13:25 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 2 Oct 2020 07:14:18 +0000 (07:14 +0000)
commite7e0468f73034b9dc0234cc5e0c82dfa69b5ba07
tree863fda406f80836faf4d5f4b7d6bb4840b85e23d
parent03bea54e02901f188d03d5432f47fc9c57c4e12e
gallium/util: fix memory-leak

When I originally wrote this code, I forgot to release the views the
code creates, leaking a bit of memory that never gets cleaned up. That's
not great, so let's plug it.

Fixes: e8a40715a8b ("gallium/util: add blitter-support for stencil-fallback")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6960>
src/gallium/auxiliary/util/u_blitter.c