fix mem leak
authorPanagiotis Papadakos <papadako@csd.uoc.gr>
Mon, 5 Feb 2007 17:29:10 +0000 (10:29 -0700)
committerBrian <brian@yutani.localnet.net>
Mon, 5 Feb 2007 17:29:10 +0000 (10:29 -0700)
src/mesa/main/mipmap.c

index f154bd4651322b9f8531e3bee1bba92864b03fdb..cc1fb97eedd4c6b65d9a547811587643edddaa5e 100644 (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);