sysutils: Terminate proc linked list is never freed either never invoked
Original Reporter info from Mantis: AntonK
-
Reporter name: Anton Kavalenka
Original Reporter info from Mantis: AntonK
- Reporter name: Anton Kavalenka
Description:
Compile attached example in -Mdelphi
By design terminate proc can be added in any unit and the executed at application termination time.
Not a problem that "CallTerminateProcs" never called - it can be the consequences of LCL structure,
but the linked list with these pointer has to be freed.
I.e. not exists complementary deallocator for the list.
Proposed solution - delete allocated objects in finalization section of every sysutils.pp implementation.