]> Pileus Git - ~andy/gtk/commitdiff
Fix memory leak. (#94399)
authorOwen Taylor <otaylor@redhat.com>
Thu, 3 Oct 2002 22:32:39 +0000 (22:32 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Thu, 3 Oct 2002 22:32:39 +0000 (22:32 +0000)
Thu Oct  3 18:25:57 2002  Owen Taylor  <otaylor@redhat.com>

        * io-jpeg.c (gdk_pixbuf__jpeg_image_save):
        Fix memory leak. (#94399)

gdk-pixbuf/ChangeLog
gdk-pixbuf/io-jpeg.c

index 1024a0d39c85360de9d71d84f7dc3e3253fcceb7..852392cc27f26f9a902130aa0e5c5a8ceca07ac5 100644 (file)
@@ -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 
index baa929cadad06c12644196de86ba8df7c47d4756..365194764f9a5e2fb2aa984d414c3a50056846b1 100644 (file)
@@ -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;
 }