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);
}
TorControl::~TorControl()
{
delete(mSocket);
}
static RsTorConnectivityStatus torConnectivityStatus(Tor::TorControl::Status t)
{
switch(t)

View File

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