System.Classes.TList.Destroy

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

destructor Destroy; override;

C++

__fastcall virtual ~TList(void);

Properties

Type Visibility Source Unit Parent
destructor public
System.Classes.pas
System.Classes.hpp
System.Classes TList

Description

Destroys an instance of 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.

See Also