]> granicus.if.org Git - imagemagick/commitdiff
Fixed destroying SVGInfo.
authordirk <dirk@git.imagemagick.org>
Fri, 4 Apr 2014 17:09:07 +0000 (17:09 +0000)
committerdirk <dirk@git.imagemagick.org>
Fri, 4 Apr 2014 17:09:07 +0000 (17:09 +0000)
coders/svg.c

index 5299fb3a85f84c92df81202e7a9c9f96fa7ed7d3..e4f2df00fce0439c386f09889216172d3afd90f6 100644 (file)
@@ -278,7 +278,7 @@ static SVGInfo *DestroySVGInfo(SVGInfo *svg_info)
   if (svg_info->text != (char *) NULL)
     svg_info->text=DestroyString(svg_info->text);
   if (svg_info->scale != (double *) NULL)
-    svg_info->scale=(double *) (svg_info->scale);
+    svg_info->scale=(double *) RelinquishMagickMemory(svg_info->scale);
   if (svg_info->title != (char *) NULL)
     svg_info->title=DestroyString(svg_info->title);
   if (svg_info->comment != (char *) NULL)