From: Matthias Kramm Date: Fri, 5 Feb 2010 00:53:07 +0000 (-0800) Subject: fixed another mem leak X-Git-Tag: version-0-9-1~163 X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;ds=sidebyside;h=d633804d334e77de50e9da7fe656ad58e52aad28;hp=062e197a657120e4f82a5758ff2f07f1bd8a2201;p=swftools.git fixed another mem leak --- diff --git a/lib/gfximage.c b/lib/gfximage.c index f1eda7d..b47031f 100644 --- a/lib/gfximage.c +++ b/lib/gfximage.c @@ -19,6 +19,7 @@ void gfximage_save_jpeg(gfximage_t*img, const char*filename, int quality) data[s+2] = img->data[t].b; } jpeg_save(data, img->width, img->height, quality, filename); + free(data); } void gfximage_save_png(gfximage_t*image, const char*filename)