Module: Mesa
Branch: mesa_7_6_branch
Commit: 80a3944a4d6a07793872d283633546d482cf61b7
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=80a3944a4d6a07793872d283633546d482cf61b7

Author: Vinson Lee <[email protected]>
Date:   Mon Nov 23 01:09:06 2009 -0500

glu/sgi: Fix memory leak in bitmapBuild2DMipmaps.
(cherry picked from commit 5b925b7daa566d799c4f50911a7fcca114131503)

---

 src/glu/sgi/libutil/mipmap.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/glu/sgi/libutil/mipmap.c b/src/glu/sgi/libutil/mipmap.c
index 223621f..c5faebd 100644
--- a/src/glu/sgi/libutil/mipmap.c
+++ b/src/glu/sgi/libutil/mipmap.c
@@ -3762,6 +3762,7 @@ static int bitmapBuild2DMipmaps(GLenum target, GLint 
internalFormat,
                    glPixelStorei(GL_UNPACK_SKIP_PIXELS,psm.unpack_skip_pixels);
                    glPixelStorei(GL_UNPACK_ROW_LENGTH, psm.unpack_row_length);
                    glPixelStorei(GL_UNPACK_SWAP_BYTES, psm.unpack_swap_bytes);
+                   free(newImage);
                    return GLU_OUT_OF_MEMORY;
                }
            }

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to