fix mem leak
This commit is contained in:
committed by
Brian
parent
eab92fcdc2
commit
d0b5c77c68
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user