TXMLConfig memory leak
Summary
There is a memory leak in TXMLConf class.
System Information
- Operating system: Windows
- Processor architecture: x86
- Compiler version: trunk
- Device: Computer
Steps to reproduce
Create an XML Config. Save To File, Load From File.
Example Project
https://github.com/bgrabitmap/bgracontrols/issues/134#issuecomment-1399331626
What is the current bug behavior?
What happens when closing the application there are several memory leaks.
What is the expected (correct) behavior?
No leaks of memory.
Relevant logs and/or screenshots
Heap dump by heaptrc unit of /Users/johann/Documents/pascal/testxmlconf/testxmlconf 202 memory blocks allocated : 39538/40008 188 memory blocks freed : 33542/34000 14 unfreed memory blocks : 5996 True heap size : 786432 (64 used in System startup) True free heap : 777216 Should be : 777672 Call trace for block $0000000101846C00 size 38 Call trace for block $0000000101846000 size 32 Call trace for block $00000001017F5DB0 size 3080 $000000010148F9FF Call trace for block $0000000101846100 size 40 $000000010148F9FF Call trace for block $000000010183D600 size 84 Call trace for block $0000000101846400 size 32 Call trace for block $000000010183D740 size 98 Call trace for block $0000000101846300 size 32 Call trace for block $000000010183D880 size 96 Call trace for block $0000000101845E00 size 40 Call trace for block $00000001017F54D0 size 2048 Call trace for block $0000000101845F00 size 32 Call trace for block $000000010186D100 size 128 Call trace for block $0000000101865100 size 216
Possible fixes
I've not seen the TXMLConf code, just used it to show the issue.