diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-10-03 22:32:33 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-10-03 22:32:33 +0000 |
commit | 6c827aef8a5e6945899728b5cc9cd0c6cb4d7025 (patch) | |
tree | 0531aa73bdd98ace3c232523fb8fce6ab81ea3da | |
parent | 746d28a9dd44c87c885534b378ecd508c05b9cdb (diff) | |
download | gdk-pixbuf-6c827aef8a5e6945899728b5cc9cd0c6cb4d7025.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)
-rw-r--r-- | gdk-pixbuf/ChangeLog | 5 | ||||
-rw-r--r-- | gdk-pixbuf/io-jpeg.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 9fa0048ec..f7a07f30d 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +Thu Oct 3 18:25:57 2002 Owen Taylor <otaylor@redhat.com> + + * io-jpeg.c (gdk_pixbuf__jpeg_image_save): + Fix memory leak. (#94399) + Tue Oct 1 17:35:43 2002 Owen Taylor <otaylor@redhat.com> * gdkpixdata.c: Patch from Andy Wingo to always diff --git a/gdk-pixbuf/io-jpeg.c b/gdk-pixbuf/io-jpeg.c index ecd650a75..3945b0cd0 100644 --- a/gdk-pixbuf/io-jpeg.c +++ b/gdk-pixbuf/io-jpeg.c @@ -887,7 +887,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; } |