I have a form with a few dummy controls and 4 Stringlists which I create and free in the forms Create and Destroy events.
A new instance of the form is created when a new tabbed dock is created. The form has a DocClose event which simply sets Action to caFree.
I can see in debug that my destroy code is being executed on closing the tab but when I close the application I get a memory leak for each form created.
See attached memory leak report for a single tabbed doc.
If I don't set Action but just close the application there is no memory leak.
How should I close the form without causing this memory leak.