From 3451ee056c8703f0d09bfab33d5fa224d4649bc4 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Thu, 27 Jan 2011 14:58:30 +0100 Subject: [PATCH] util: Fix leak of transfers in upload manager --- src/gallium/auxiliary/util/u_upload_mgr.c | 1 + 1 file changed, 1 insertion(+) 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 ); -- 2.30.2