projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eab92fc
)
fix mem leak
author
Panagiotis Papadakos
<papadako@csd.uoc.gr>
Mon, 5 Feb 2007 17:29:10 +0000
(10:29 -0700)
committer
Brian
<brian@yutani.localnet.net>
Mon, 5 Feb 2007 17:29:10 +0000
(10:29 -0700)
src/mesa/main/mipmap.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/mipmap.c
b/src/mesa/main/mipmap.c
index f154bd4651322b9f8531e3bee1bba92864b03fdb..cc1fb97eedd4c6b65d9a547811587643edddaa5e 100644
(file)
--- 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);