]> git.sesse.net Git - qscale/commitdiff
Merge.
authorSteinar H. Gunderson <sesse@debian.org>
Sat, 24 Oct 2009 13:47:21 +0000 (15:47 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Sat, 24 Oct 2009 13:47:21 +0000 (15:47 +0200)
libqscale.c

index 91a6f788063f53aa2bbf48d2bdb3b6557e2481cc..1ce7e891fdf0564c70a070bc0555a935a4e45e19 100644 (file)
@@ -345,6 +345,9 @@ static void hscale(float *pix, unsigned char *npix, unsigned w, unsigned h, unsi
                        *dptr++ = ch;
                }
        }
                        *dptr++ = ch;
                }
        }
+
+       free(pd);
+       free(coeffs);
 }
 
 static void vscale(unsigned char *pix, float *npix, unsigned w, unsigned h, unsigned nh, unsigned dstride, enum qscale_scaling_filter scaling_filter)
 }
 
 static void vscale(unsigned char *pix, float *npix, unsigned w, unsigned h, unsigned nh, unsigned dstride, enum qscale_scaling_filter scaling_filter)
@@ -494,6 +497,9 @@ static void vscale(unsigned char *pix, float *npix, unsigned w, unsigned h, unsi
                        dptr += dstride;
                }
        }
                        dptr += dstride;
                }
        }
+       
+       free(pd);
+       free(coeffs);
 }
 
 qscale_img *qscale_clone(const qscale_img *img)
 }
 
 qscale_img *qscale_clone(const qscale_img *img)