There seem to be several memory leaks in the CryptoDemo project if you enable ReportMemoryLeaksOnShutdown:=True; in CryptoDemo.dpr:
An unexpected memory leak has occurred. The unexpected small block leaks are:
1 - 12 bytes: TConvert x 1
Steps to reproduce:
- ReportMemoryLeaksOnShutdown:=True in the CryptoDemo.dpr
- Start the demo
- Exit the demo
- Above error message is displayed.
The error seems to bei in Edit4Change(), conv.Free and a resource protection/try finally block is missing. This is fixed rather easily.
If you start to use the AES text encryption part of the demo, there seem to be several more memory leaks (of TConvert objects and others). Can you please take a look at these errors? They seem to happen outside of the demo source code.
Thank you!
Kind regards,
Timo