]> granicus.if.org Git - imagemagick/commitdiff
Fixed memory leak.
authordirk <dirk@git.imagemagick.org>
Thu, 7 Jan 2016 21:45:07 +0000 (22:45 +0100)
committerdirk <dirk@git.imagemagick.org>
Thu, 7 Jan 2016 21:45:07 +0000 (22:45 +0100)
Magick++/lib/Options.cpp

index a99d2765ea351cae44ecd8ad9da6805f6f97e178..e76785dc67663f6531f0ad605ea1fdf2a81c6207 100644 (file)
@@ -295,7 +295,7 @@ void Magick::Options::fontFamily(const std::string &family_)
   if (family_.length() == 0)
     {
       _drawInfo->family=(char *) RelinquishMagickMemory(_drawInfo->font);
-      (void) RemoveImageOption(imageInfo(),"family");
+      DestroyString(RemoveImageOption(imageInfo(),"family"));
     }
   else
     {