Commit 1c9306871 for imagemagick.org

commit 1c9306871c415ef14338eca6c0fc10ac9cb84125
Author: Dirk Lemstra <dirk@lemstra.org>
Date:   Sun Jun 14 11:03:52 2026 +0200

    Always return dng_image because the libtiff reader was closed.

diff --git a/coders/tiff.c b/coders/tiff.c
index b7da7ec13..fcaa432a6 100644
--- a/coders/tiff.c
+++ b/coders/tiff.c
@@ -1294,11 +1294,8 @@ static Image *ReadTIFFImage(const ImageInfo *image_info,
             }
         }
       read_info=DestroyImageInfo(read_info);
-      if (dng_image != (Image *) NULL)
-        {
-          image=DestroyImageList(image);
-          return(dng_image);
-        }
+      image=DestroyImageList(image);
+      return(dng_image);
     }
   if (image_info->number_scenes != 0)
     {