diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-10-03 22:32:39 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-10-03 22:32:39 +0000 |
commit | 71277f4075d53cc1eea6e7e4f20c187c79f1172d (patch) | |
tree | 98255b1903cb1ee2e70533ebda140a226df06b6c /gdk-pixbuf/io-jpeg.c | |
parent | 040d54a534c6909196713aa47d13f8ce553a8ee2 (diff) | |
download | gtk+-71277f4075d53cc1eea6e7e4f20c187c79f1172d.tar.gz |
Fix memory leak. (#94399)
Thu Oct 3 18:25:57 2002 Owen Taylor <otaylor@redhat.com>
* io-jpeg.c (gdk_pixbuf__jpeg_image_save):
Fix memory leak. (#94399)
Diffstat (limited to 'gdk-pixbuf/io-jpeg.c')
-rw-r--r-- | gdk-pixbuf/io-jpeg.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |