Mesa (mesa_7_7_branch): mesa: Fix memory leak in decompress-with-blit.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Sat Mar 13 02:41:50 PST 2010


Module: Mesa
Branch: mesa_7_7_branch
Commit: 0c9e8e6c6e704fac299e2c6224f6030541aef458
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c9e8e6c6e704fac299e2c6224f6030541aef458

Author: Keith Whitwell <keithw at vmware.com>
Date:   Fri Mar 12 18:32:10 2010 +0000

mesa: Fix memory leak in decompress-with-blit.
(cherry picked from commit f05a4ee6f2840590c90da4be2fe5c6295410a5af)

---

 src/mesa/state_tracker/st_cb_texture.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c
index 0858a36..49c18a0 100644
--- a/src/mesa/state_tracker/st_cb_texture.c
+++ b/src/mesa/state_tracker/st_cb_texture.c
@@ -863,6 +863,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);
 }



More information about the mesa-commit mailing list