fixed memory leak
authorVladimir Nadvornik <nadvornik@suse.cz>
Mon, 16 Jun 2008 19:07:02 +0000 (19:07 +0000)
committerVladimir Nadvornik <nadvornik@suse.cz>
Mon, 16 Jun 2008 19:07:02 +0000 (19:07 +0000)
src/thumb.c
src/thumb_standard.c

index d6fb883..495f353 100644 (file)
@@ -172,6 +172,7 @@ static void thumb_loader_done_cb(ImageLoader *il, gpointer data)
                                tl->fd->exif_orientation = orientation;
                        else
                                tl->fd->exif_orientation = 1;
+                       exif_free(exif);
                        }
                
                rotated = pixbuf_apply_orientation(pixbuf, tl->fd->exif_orientation);
index 0640565..e96fbd9 100644 (file)
@@ -414,6 +414,7 @@ static GdkPixbuf *thumb_loader_std_finish(ThumbLoaderStd *tl, GdkPixbuf *pixbuf,
                                tl->fd->exif_orientation = orientation;
                        else
                                tl->fd->exif_orientation = 1;
+                       exif_free(exif);
                        }
                
                rotated = pixbuf_apply_orientation(pixbuf, tl->fd->exif_orientation);