fix mem leak

This commit is contained in:
Panagiotis Papadakos
2007-02-05 10:29:10 -07:00
committed by Brian
parent eab92fcdc2
commit d0b5c77c68
+3
View File
@@ -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);