Added delete of member TorControlSocket in destructor of TorControl

This commit is contained in:
thunder2 2021-12-29 16:00:02 +01:00
parent e096f2feb1
commit 1fafaeb909
2 changed files with 6 additions and 0 deletions

View file

@ -70,6 +70,11 @@ TorControl::TorControl()
mSocket = new TorControlSocket(this); mSocket = new TorControlSocket(this);
} }
TorControl::~TorControl()
{
delete(mSocket);
}
static RsTorConnectivityStatus torConnectivityStatus(Tor::TorControl::Status t) static RsTorConnectivityStatus torConnectivityStatus(Tor::TorControl::Status t)
{ {
switch(t) switch(t)

View file

@ -68,6 +68,7 @@ public:
}; };
explicit TorControl(); explicit TorControl();
virtual ~TorControl();
/* Information */ /* Information */
Status status() const; Status status() const;