Internet Direct (Indy) Version 9.0.1 Beta
MClientThread.Destroy
Frees the object instance.

destructor Destroy; override;
Description
Destroy is the destructor for the object instance, and is responsible for notifications to the MasterParent tunnel server that the thread will be freed. Destroy instructs the MasterParent to decrease the number of service threads for the tunnel server, and removes the connection from the client list.

When DisconnectedOnRequest is False, MClientThread will also generate and send a Tunnel Disconnect message to the tunnel server.

If the TCP client is still connected, the OutboundClient is disconnected and freed.

Destroy also calls the inherited Destroy method to finalize destruction of the object instance.