I\'m a bit puzzled of what to use for storing objects in a list.
Until now I have used TList
and freed each item in a loop. Then I discovered TObjectList
Really watching the TObjectList
code in contnrs.pas OwnObjects
does nothing. FOwnObjects
is a variable declared in the private part of TObjectList
that is not used anywhere in the TObjectList
code (except just assigning the value), and there is no overridden Clear
procedure in it.
So I'm afraid it necessary to free the memory just the same as in TList
.