mesa: fix a leak in _mesa_delete_texture_image()
authorPekka Paalanen <ppaalanen@gmail.com>
Fri, 16 Dec 2011 14:10:47 +0000 (16:10 +0200)
committerPekka Paalanen <ppaalanen@gmail.com>
Tue, 20 Dec 2011 09:58:23 +0000 (11:58 +0200)
commitdae2fca70521909cfdd8d217d5e42fc6b33b05f6
treef69ad0c2f0954b43a46c78d720e67c71ceeb4028
parent249c6f1934d1d0a6215d02ef6b8a7e9585dfe955
mesa: fix a leak in _mesa_delete_texture_image()

Valgrind complains about a definitely lost block allocated in
intelNewTextureImage(). This leak was apparently created by
6e0f9001fe3fb191c2928bd09aa9e9d05ddf4ea9, "mesa: move
gl_texture_image::Data, RowStride, ImageOffsets to swrast", as it
removes the free() from _mesa_delete_texture_image().

Put the free() back, fixes a Valgrind error.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/teximage.c