RAD Studio VCL Reference
TList.Destroy Destructor

Destroys an instance of TList.

destructor Destroy; override;
virtual __fastcall ~TList();

Do not call Destroy directly. Instead, call Free. Free verifies that the TList reference is not nil, and only then calls Destroy. 

Destroy frees the memory used to store the list of items.

Note: Destroy does not free the memory pointed to by the elements of the list.


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!