TChmWriter memleak
Original Reporter info from Mantis: seniorandre
-
Reporter name: Andrey Sobol
Original Reporter info from Mantis: seniorandre
- Reporter name: Andrey Sobol
Description:
I seeked a lost files into chm`s but as result I have found a huge memleak into tchmwriter.
I have checked html generation mode the memleak is not exist, but chm mode gives the leak nearby using lzh
After calling the function
FChm.AddStreamToArchive(FileName, FilePath, FileStream, True);
I could not fix it. Need someone more competent in this matter
Steps to reproduce:
I use the debug options:
-O1 -gw2 -godwarfsets -gl -gh-Xg
and the fpdoc options:
--input=ufrmmain.pas --package=test --import=rtl.xct,..\rtl --format=chm --output=test --auto-toc --auto-index --make-searchable
Test file is attached, the result log file also...
Mantis conversion info:
- Mantis ID: 38315
- OS: Windows
- OS Build: Win10
- Build: trunc
- Platform: i386