summaryrefslogtreecommitdiff
path: root/src/mesa/main/mipmap.c
diff options
context:
space:
mode:
authorPanagiotis Papadakos <papadako@csd.uoc.gr>2007-02-05 10:29:10 -0700
committerBrian <brian@yutani.localnet.net>2007-02-05 10:29:10 -0700
commitd0b5c77c68f45f9da5421248a064ece831923b0c (patch)
tree0b39400bf3042cc3af9f097d526e1b4a0df08165 /src/mesa/main/mipmap.c
parenteab92fcdc23a8a9d333227e4c98e6a33a9cc1183 (diff)
fix mem leak
Diffstat (limited to 'src/mesa/main/mipmap.c')
-rw-r--r--src/mesa/main/mipmap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/mipmap.c b/src/mesa/main/mipmap.c
index f154bd4651..cc1fb97eed 100644
--- a/src/mesa/main/mipmap.c
+++ b/src/mesa/main/mipmap.c
@@ -928,6 +928,9 @@ _mesa_generate_mipmap(GLcontext *ctx, GLenum target,
return;
}
+ if (dstImage->ImageOffsets)
+ _mesa_free(dstImage->ImageOffsets);
+
/* Free old image data */
if (dstImage->Data)
ctx->Driver.FreeTexImageData(ctx, dstImage);