From 3451ee056c8703f0d09bfab33d5fa224d4649bc4 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Thu, 27 Jan 2011 14:58:30 +0100 Subject: util: Fix leak of transfers in upload manager --- src/gallium/auxiliary/util/u_upload_mgr.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium') diff --git a/src/gallium/auxiliary/util/u_upload_mgr.c b/src/gallium/auxiliary/util/u_upload_mgr.c index 3b3d5b418f..865dab864b 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 ); -- cgit v1.2.3