util: Fix leak of transfers in upload manager

This commit is contained in:
Jakob Bornecrantz
2011-01-27 14:58:30 +01:00
parent e89fc33d7a
commit 3451ee056c
@@ -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 );