From c42cd7c143e501aff4d624a2591e7f26ee5d5ce9 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 14 Nov 2021 19:35:27 -0500 Subject: [PATCH] destroy image list rather than just the first image --- coders/txt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coders/txt.c b/coders/txt.c index 5804697a6d..ce7c88a309 100644 --- a/coders/txt.c +++ b/coders/txt.c @@ -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)