From d633804d334e77de50e9da7fe656ad58e52aad28 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Thu, 4 Feb 2010 16:53:07 -0800 Subject: [PATCH] fixed another mem leak --- lib/gfximage.c | 1 + 1 file changed, 1 insertion(+) 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) -- 1.7.10.4