I have a procedure that declares a protected list, like so:
It then uses this list, populating it and then doing some other operations, before the function returns. My question is, do I need to call FreeList() before my function returns, or does the list going out of scope automatically free it? I.e., does calling NewList multiple times across multiple procedure calls leak memory if you don't call FreeList()?
Thanks!