OSDN Git Service

u_threaded_context: fix a memory leak
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 10 Oct 2017 11:58:46 +0000 (13:58 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Tue, 10 Oct 2017 11:58:46 +0000 (13:58 +0200)
commit1b592d30c51696eeeadca7a55b603c543dfdc3cf
treec47d8f8a6d8bef20e6458e0d499e8a6edf548e69
parent76fcede3f44d5f6eaf9b99ef80914c326387a3e5
u_threaded_context: fix a memory leak

The uploaders can own transfers which need to be unmapped. Destroy them
before the final sync (they're not used from the driver thread anyway)
so that the transfer_unmap call is processed by the driver.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_threaded_context.c