From: cristy Date: Wed, 8 Oct 2014 15:52:56 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~1907 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=892484b12e945553a530273fccb012a7860d1c90;p=imagemagick --- diff --git a/coders/tiff.c b/coders/tiff.c index 166da751c..00076eb98 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -2365,7 +2365,13 @@ static MagickBooleanType WritePTIFImage(const ImageInfo *image_info, images=NewImageList(); for (next=image; next != (Image *) NULL; next=GetNextImageInList(next)) { - AppendImageToList(&images,CloneImage(next,0,0,MagickFalse,exception)); + Image + *clone_image; + + clone_image=CloneImage(next,0,0,MagickFalse,exception); + clone_image->previous=NewImageList(); + clone_image->next=NewImageList(); + AppendImageToList(&images,clone_image); columns=next->columns; rows=next->rows; resolution=next->resolution;