mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-22 22:21:09 -04:00
Added delete of member TorControlSocket in destructor of TorControl
This commit is contained in:
parent
e096f2feb1
commit
1fafaeb909
2 changed files with 6 additions and 0 deletions
|
@ -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)
|
||||||
|
|
|
@ -68,6 +68,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
explicit TorControl();
|
explicit TorControl();
|
||||||
|
virtual ~TorControl();
|
||||||
|
|
||||||
/* Information */
|
/* Information */
|
||||||
Status status() const;
|
Status status() const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue