mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 01:38:06 +02:00
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>
This commit is contained in:
parent
17898a9b7e
commit
81582e9366
1 changed files with 1 additions and 0 deletions
|
|
@ -511,6 +511,7 @@ u_transfer_helper_transfer_unmap(struct pipe_context *pctx,
|
|||
helper->vtbl->transfer_unmap(pctx, trans->trans2);
|
||||
}
|
||||
|
||||
free(trans->staging);
|
||||
free(trans);
|
||||
} else {
|
||||
helper->vtbl->transfer_unmap(pctx, ptrans);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue