On Sun, 2017-05-14 at 00:47 +0800, liang cheng wrote: > Based on the following debug infomation I got, It seems like this > malformed pdf file causes PoDoFo::PdfParser::ParseFile() to throw an > exception and exit directly, without deleting the memory allocated in > PdfMemDocument::Load().
Hi, it looks like exception thrown within an object constructor doesn't call that object's destructor, thus it caused the memory leak. I made a change in the podofotxtextract, which avoids the leak, in revision 1850: http://sourceforge.net/p/podofo/code/1850 Bye, zyx -- http://www.litePDF.cz i...@litepdf.cz ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users