]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 1 Oct 2017 13:24:34 +0000 (09:24 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 1 Oct 2017 13:24:34 +0000 (09:24 -0400)
coders/cut.c
coders/pcx.c

index 13122386331ba1ee1cf0673eafcf274a58d137d9..fc6af5413d24656e8401a4bf99c2a00735e04428 100644 (file)
@@ -289,13 +289,13 @@ static int GetCutColors(Image *image,ExceptionInfo *exception)
 */
 static Image *ReadCUTImage(const ImageInfo *image_info,ExceptionInfo *exception)
 {
-#define ThrowCUTReaderException(severity,reason) \
+#define ThrowCUTReaderException(severity,tag) \
 { \
   if (palette != NULL) \
     palette=DestroyImage(palette); \
   if (clone_info != NULL) \
     clone_info=DestroyImageInfo(clone_info); \
-  ThrowReaderException(severity,reason); \
+  ThrowReaderException(severity,tag); \
 }
 
   Image *image,*palette;
index 411c17d56435b68df1c514b025bdc2a7d304c2a9..22edbce16ed138654cba4363e9990d3505b0a6dd 100644 (file)
@@ -390,7 +390,7 @@ static Image *ReadPCXImage(const ImageInfo *image_info,ExceptionInfo *exception)
         break;
     status=SetImageExtent(image,image->columns,image->rows,exception);
     if (status == MagickFalse)
-      return(DestroyImageList(image));
+      ThrowPCXException(exception->severity,exception->reason);
     /*
       Read image data.
     */