From 71277f4075d53cc1eea6e7e4f20c187c79f1172d Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Thu, 3 Oct 2002 22:32:39 +0000 Subject: [PATCH] Fix memory leak. (#94399) Thu Oct 3 18:25:57 2002 Owen Taylor * io-jpeg.c (gdk_pixbuf__jpeg_image_save): Fix memory leak. (#94399) --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/io-jpeg.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 1024a0d39c..852392cc27 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +Thu Oct 3 18:25:57 2002 Owen Taylor + + * io-jpeg.c (gdk_pixbuf__jpeg_image_save): + Fix memory leak. (#94399) + Tue Oct 1 17:35:43 2002 Owen Taylor * gdkpixdata.c: Patch from Andy Wingo to always diff --git a/gdk-pixbuf/io-jpeg.c b/gdk-pixbuf/io-jpeg.c index baa929cada..365194764f 100644 --- a/gdk-pixbuf/io-jpeg.c +++ b/gdk-pixbuf/io-jpeg.c @@ -901,7 +901,8 @@ gdk_pixbuf__jpeg_image_save (FILE *f, } /* finish off */ - jpeg_finish_compress (&cinfo); + jpeg_finish_compress (&cinfo); + jpeg_destroy_compress(&cinfo); g_free (buf); return TRUE; }