gallium/u_transfer_helper: Don't leak a reference to the resource.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 28 Jun 2019 00:00:46 +0000 (17:00 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 28 Jun 2019 18:25:56 +0000 (11:25 -0700)
commit65e0c4b64f6fbbab0e6a56d55d1d6c4baf875687
tree3f6379e72ae9fadebf4febe74d09683f07607e75
parent6227e6faee29e4f857aa3a198302135cdf37c402
gallium/u_transfer_helper: Don't leak a reference to the resource.

We pipe_resource_reference when handling transfers in map, we need to
do a corresponding unreference in unmap.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/auxiliary/util/u_transfer_helper.c