Skip to content

Commit

Permalink
do not free unallocated exif data
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Jul 28, 2008
1 parent 6eac9ec commit a4d5b30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,8 @@ void image_change_pixbuf(ImageWindow *imd, GdkPixbuf *pixbuf, gdouble zoom)
}
}

exif_free_fd(imd->image_fd, exif);
if (read_exif_for_color_profile || read_exif_for_orientation)
exif_free_fd(imd->image_fd, exif);

if (imd->cm || imd->desaturate)
pixbuf_renderer_set_post_process_func((PixbufRenderer *)imd->pr, image_post_process_tile_color_cb, (gpointer) imd, (imd->cm != NULL) );
Expand Down

0 comments on commit a4d5b30

Please sign in to comment.