glu/sgi: Fix memory leak in bitmapBuild2DMipmaps.

This commit is contained in:
Vinson Lee 2009-11-23 01:09:06 -05:00
parent b611f639b4
commit 5b925b7daa
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}