List.Clear...how deep does it go...

Everest

Member
Licensed User
Longtime User
Hello,

I have a list object aList.
I have a 'type' object that contains a map object and a string. aSection

aList is a list of aSection.

If I call aList.clear does it unwind and free all the objects in each aSection?

Or do I need to unwind it and call clear on each map object so it can be freed when I call aList.clear?

Ciao,

Mark
 

Everest

Member
Licensed User
Longtime User
Hello,

Thanks that was what I thought.

Years of being careful about memory allocation/deallocation is a trait I can not discard because I still program in other languages.

Mark
 
Upvote 0
Top