free convolved image / fix mem leak (bug 7077)
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 30 May 2006 21:58:55 +0000 (21:58 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 30 May 2006 21:58:55 +0000 (21:58 +0000)
src/mesa/swrast/s_readpix.c

index be6c2649d63e1afae4060da2ac953520640d471c..eec408557599986d7077531dea278be8fc61f3be 100644 (file)
@@ -356,6 +356,7 @@ read_rgba_pixels( GLcontext *ctx,
                                     transferOps & IMAGE_POST_CONVOLUTION_BITS);
          src += width * 4;
       }
+      _mesa_free(convImage);
    }
    else {
       /* no convolution */