]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/547
authorCristy <urban-warrior@imagemagick.org>
Thu, 6 Jul 2017 12:10:23 +0000 (08:10 -0400)
committerCristy <urban-warrior@imagemagick.org>
Thu, 6 Jul 2017 12:10:23 +0000 (08:10 -0400)
coders/mat.c

index 0171eb772821e883dfc29eae859031a94b59ac66..f9155c5372765b154884b7fe7a243afb55a4fc1c 100644 (file)
@@ -1301,7 +1301,8 @@ done_reading:
   if (quantum_info != (QuantumInfo *) NULL)
     quantum_info=DestroyQuantumInfo(quantum_info);
 END_OF_READING:
-  clone_info=DestroyImageInfo(clone_info);
+  if (clone_info)
+    clone_info=DestroyImageInfo(clone_info);
   CloseBlob(image);