Skip to content

Commit

Permalink
fixed memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
nadvornik committed Jun 16, 2008
1 parent 57a04da commit 304e05c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/thumb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions src/thumb_standard.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 304e05c

Please sign in to comment.