diff options
author | Jakob Bornecrantz <[email protected]> | 2011-01-27 14:58:30 +0100 |
---|---|---|
committer | Jakob Bornecrantz <[email protected]> | 2011-01-28 22:10:53 +0100 |
commit | 3451ee056c8703f0d09bfab33d5fa224d4649bc4 (patch) | |
tree | 4425387485c8ce01ede26d73c2f8e23f19c4ca06 /src/gallium/auxiliary/util | |
parent | e89fc33d7af979ad1ab0dca6bee8a843c91a6d7f (diff) |
util: Fix leak of transfers in upload manager
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r-- | src/gallium/auxiliary/util/u_upload_mgr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_upload_mgr.c b/src/gallium/auxiliary/util/u_upload_mgr.c index 3b3d5b418fe..865dab864b3 100644 --- a/src/gallium/auxiliary/util/u_upload_mgr.c +++ b/src/gallium/auxiliary/util/u_upload_mgr.c @@ -86,6 +86,7 @@ void u_upload_flush( struct u_upload_mgr *upload ) /* Unmap and unreference the upload buffer. */ if (upload->transfer) { pipe_transfer_unmap(upload->pipe, upload->transfer); + pipe_transfer_destroy(upload->pipe, upload->transfer); upload->transfer = NULL; } pipe_resource_reference( &upload->buffer, NULL ); |