Fixed possible memory leak.

This commit is contained in:
dirk
2016-01-11 21:52:01 +01:00
parent e54e1e5cdb
commit 80c5cc272e
+1
View File
@@ -1881,6 +1881,7 @@ void Magick::Image::annotate(const std::string &text_,
(void) CopyMagickString(boundingArea,
std::string(boundingArea_).c_str(), MagickPathExtent);
}
drawInfo->geometry=DestroyString(drawInfo->geometry);
drawInfo->geometry=boundingArea;
}