The text property in the HtmlString class is allocated with grealloc() and should therefore be freed with gfree() instead of delete in the HtmlString destructor. diff --git a/utils/HtmlOutputDev.cc b/utils/HtmlOutputDev.cc index 54f62e7..df4b6bf 100644 --- a/utils/HtmlOutputDev.cc +++ b/utils/HtmlOutputDev.cc @@ -142,7 +142,7 @@ HtmlString::HtmlString(GfxState *state, double fontSize, HtmlFontAccu* fonts) { HtmlString::~HtmlString() { - delete text; + gfree(text); delete htext; gfree(xRight); }
Thanks for the patch, will be fixed in poppler 0.9.2
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.