From: Keith Whitwell Date: Fri, 12 Mar 2010 18:32:10 +0000 (+0000) Subject: mesa: Fix memory leak in decompress-with-blit. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63af29bfbe265318bcf5be69e420de361b900321;p=mesa.git mesa: Fix memory leak in decompress-with-blit. (cherry picked from commit f05a4ee6f2840590c90da4be2fe5c6295410a5af) --- diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index c849132e74c..92eefca2e79 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -880,6 +880,8 @@ decompress_with_blit(GLcontext * ctx, GLenum target, GLint level, _mesa_unmap_pbo_dest(ctx, &ctx->Pack); + screen->tex_transfer_destroy(tex_xfer); + /* destroy the temp / dest surface */ util_destroy_rgba_surface(dst_texture, dst_surface); }