Skip to content

Commit

Permalink
Fix a regression bug introduced by 0221665
Browse files Browse the repository at this point in the history
  • Loading branch information
saitoha committed Sep 26, 2014
1 parent 0221665 commit 908c8eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/image.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ sixel_create_image(unsigned char *pixels, int sx, int sy, int depth,
void
sixel_image_destroy(sixel_image_t *im)
{
sixel_dither_unref(im->dither);
if (im->dither) {
sixel_dither_unref(im->dither);
}
if (!im->borrowed) {
free(im->pixels);
}
Expand Down

0 comments on commit 908c8eb

Please sign in to comment.