diff options
author | Vinson Lee <[email protected]> | 2009-11-25 00:39:37 -0500 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2009-11-25 00:39:37 -0500 |
commit | 94bcb9f1a43f2ab3bdff09156e3ab5b1c115cbd8 (patch) | |
tree | 750e1c336094011a7e128f3095eaf753121ed3a2 /src/glu/sgi/libutil/mipmap.c | |
parent | 0d89f3dc7ff3f89ba8d5d664253730485bca35e2 (diff) |
glu/sgi: Fix memory leak in gluBuild1DMipmapLevelsCore.
Diffstat (limited to 'src/glu/sgi/libutil/mipmap.c')
-rw-r--r-- | 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 796be0aad38..bf6eaf88c6d 100644 --- a/src/glu/sgi/libutil/mipmap.c +++ b/src/glu/sgi/libutil/mipmap.c @@ -3608,6 +3608,7 @@ int gluBuild1DMipmapLevelsCore(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; } } |