projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e89fc33
)
util: Fix leak of transfers in upload manager
author
Jakob Bornecrantz
<jakob@vmware.com>
Thu, 27 Jan 2011 13:58:30 +0000
(14:58 +0100)
committer
Jakob Bornecrantz
<jakob@vmware.com>
Fri, 28 Jan 2011 21:10:53 +0000
(22:10 +0100)
src/gallium/auxiliary/util/u_upload_mgr.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_upload_mgr.c
b/src/gallium/auxiliary/util/u_upload_mgr.c
index 3b3d5b418fe9227daf3ee4fc9d56443a6b94325d..865dab864b39dac6bee238d848e5594d8a93c83e 100644
(file)
--- 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 );