[gdk-pixbuf] Fix another potential leak in an error path



commit ad547a174b9c60425a47bac1720253cd830193c6
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Dec 16 23:58:07 2013 -0500

    Fix another potential leak in an error path
    
    If we longjump out of libjpeg, we may have already parsed
    the exif data, so free that as well.

 gdk-pixbuf/io-jpeg.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gdk-pixbuf/io-jpeg.c b/gdk-pixbuf/io-jpeg.c
index 6f2cbf6..4a90d87 100644
--- a/gdk-pixbuf/io-jpeg.c
+++ b/gdk-pixbuf/io-jpeg.c
@@ -547,6 +547,7 @@ gdk_pixbuf__jpeg_image_load (FILE *f, GError **error)
                        g_object_unref (pixbuf);
 
                jpeg_destroy_decompress (&cinfo);
+               jpeg_destroy_exif_context (&exif_context);
 
                /* error should have been set by fatal_error_handler () */
                return NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]