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

destructor Destroy; override;
Description
Destroy is the destructor for the object instance, and is responsible for releasing object properties of the TIdTunnelSlave. Destroy will insure that the server is not AcceptingConnections and Active.

Destroy closes the TCP connection that serves as the tunnel link to the TIdTunnelMaster server.

Destroy terminates the SlaveThread that listens for data on the tunnel connection.

Destroy will free and release the TCriticalSection instances uses to protect the resources of the TIdTunnelSlave server.

Destroy relies on the inherited Destroy method to complete destruction of the object instance.