[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TCollection.Destroy

Destroys the collection and frees all the objects it manages.

Declaration

Source position: classesh.inc line 400

public destructor TCollection.Destroy; override;

Description

Destroyfirst clears the collection, and then frees all memory allocated to this instance.

Don't call Destroydirectly, call Freeinstead.

See also

TCollection.Create

  

Creates a new collection.