Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Check for image list before we destroy the last image in XCF coder (p…
…atch sent privately by Андрей Черный)
  • Loading branch information
Cristy committed Feb 9, 2017
1 parent d0ecc3d commit d31fec5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coders/xcf.c
Expand Up @@ -1445,7 +1445,8 @@ static Image *ReadXCFImage(const ImageInfo *image_info,ExceptionInfo *exception)
}

(void) CloseBlob(image);
DestroyImage(RemoveFirstImageFromList(&image));
if (GetNextImageInList(image) != (Image *) NULL)
DestroyImage(RemoveFirstImageFromList(&image));
if (image_type == GIMP_GRAY)
image->type=GrayscaleType;
return(GetFirstImageInList(image));
Expand Down

0 comments on commit d31fec5

Please sign in to comment.