Skip to content
Permalink
Browse files

https://github.com//issues/1589

  • Loading branch information...
Cristy
Cristy committed Jun 16, 2019
1 parent d08250e commit f595a1985233c399a05c0c37cc41de16a90dd025
Showing with 11 additions and 2 deletions.
  1. +11 −2 MagickCore/annotate.c
@@ -274,7 +274,11 @@ MagickExport MagickBooleanType AnnotateImage(Image *image,
number_lines++;
textlist=AcquireQuantumMemory(number_lines+1,sizeof(*textlist));
if (textlist == (char **) NULL)
return(MagickFalse);
{
annotate_info=DestroyDrawInfo(annotate_info);
annotate=DestroyDrawInfo(annotate);
return(MagickFalse);
}
p=text;
for (i=0; i < number_lines; i++)
{
@@ -303,7 +307,12 @@ MagickExport MagickBooleanType AnnotateImage(Image *image,
(void) ParseGeometry(annotate_info->geometry,&geometry_info);
}
if (SetImageStorageClass(image,DirectClass,exception) == MagickFalse)
return(MagickFalse);
{
annotate_info=DestroyDrawInfo(annotate_info);
annotate=DestroyDrawInfo(annotate);
textlist=(char **) RelinquishMagickMemory(textlist);
return(MagickFalse);
}
if (IsGrayColorspace(image->colorspace) != MagickFalse)
(void) SetImageColorspace(image,sRGBColorspace,exception);
status=MagickTrue;

0 comments on commit f595a19

Please sign in to comment.
You can’t perform that action at this time.