gallium/u_transfer_helper: Free the staging buffer on unmap.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 7 Jun 2019 08:16:16 +0000 (01:16 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 9 Jun 2019 22:16:10 +0000 (15:16 -0700)
commit81582e9366497d8674ae342d3d72224fbf514fb9
treeb16b01f91b7b3fb3a7b95da84015ddebd7e8fe2b
parent17898a9b7e0cd3bfc95c186586e5cafa1e3a2c9d
gallium/u_transfer_helper: Free the staging buffer on unmap.

u_transfer_helper sometimes mallocs a staging buffer, and leaked it.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
src/gallium/auxiliary/util/u_transfer_helper.c