Skip to content

Commit

Permalink
destroy image list rather than just the first image
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Nov 15, 2021
1 parent a4dec0c commit c42cd7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coders/txt.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ static Image *ReadTEXTImage(const ImageInfo *image_info,
}
(void) AnnotateImage(image,draw_info);
if (texture != (Image *) NULL)
texture=DestroyImage(texture);
texture=DestroyImageList(texture);
draw_info=DestroyDrawInfo(draw_info);
(void) CloseBlob(image);
if (status == MagickFalse)
Expand Down

0 comments on commit c42cd7c

Please sign in to comment.