[Overview][Classes][Procedures and functions][Index] Reference for unit 'LazClasses' (#lazutils)

TRefCountedObject.Destroy

Destructor for the class instance.

Declaration

Source position: lazclasses.pas line 68

public destructor TRefCountedObject.Destroy; override;

Description

Destroy is the overridden destructor for the class instance. It ensures that resource allocated in the constructor are freed before freeing the class instance. Destroy calls the inherited destructor prior to exit.

Errors

Destroy raises an EAssertionFailed exception if RefCount has a non-zero value when the method was called.


Version 4.0 Generated 2025-05-03 Home