]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 24 Dec 2016 18:38:14 +0000 (13:38 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 24 Dec 2016 18:38:14 +0000 (13:38 -0500)
MagickCore/draw.c

index 86bd24ca1b975d177c4a316c679b18e2262f3ad8..96b6be6e8a62df3c769ed6bde95586058cecfdac 100644 (file)
@@ -2921,11 +2921,8 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info,
         (size_t) number_points,sizeof(*primitive_info));
       if ((primitive_info == (PrimitiveInfo *) NULL) ||
           (number_points != (MagickSizeType) ((size_t) number_points)))
-        {
-          (void) ThrowMagickException(exception,GetMagickModule(),
-            ResourceLimitError,"MemoryAllocationFailed","`%s'",image->filename);
-          break;
-        }
+        ThrowBinaryException(ResourceLimitError,"MemoryAllocationFailed",
+          image->filename);
     }
     primitive_info[j].primitive=primitive_type;
     primitive_info[j].coordinates=(size_t) x;