Mesa (master): util: Fix leak of transfers in upload manager
Jakob Bornecrantz
wallbraker at kemper.freedesktop.org
Fri Jan 28 21:12:10 UTC 2011
Module: Mesa
Branch: master
Commit: 3451ee056c8703f0d09bfab33d5fa224d4649bc4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3451ee056c8703f0d09bfab33d5fa224d4649bc4
Author: Jakob Bornecrantz <jakob at vmware.com>
Date: Thu Jan 27 14:58:30 2011 +0100
util: Fix leak of transfers in upload manager
---
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 3b3d5b4..865dab8 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 );
More information about the mesa-commit
mailing list