From: dirk Date: Thu, 7 Jan 2016 21:45:07 +0000 (+0100) Subject: Fixed memory leak. X-Git-Tag: 7.0.1-0~358 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14489718d12a28c56ea1d858114b45730c929409;p=imagemagick Fixed memory leak. --- diff --git a/Magick++/lib/Options.cpp b/Magick++/lib/Options.cpp index a99d2765e..e76785dc6 100644 --- a/Magick++/lib/Options.cpp +++ b/Magick++/lib/Options.cpp @@ -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 {