mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-24 06:59:27 -05:00
Added delete of TorControl in destructor of TorManagerPrivate
This commit is contained in:
parent
8d3046d157
commit
97f7e0f936
@ -71,6 +71,7 @@ public:
|
||||
HiddenService *hiddenService ;
|
||||
|
||||
explicit TorManagerPrivate(TorManager *parent = 0);
|
||||
virtual ~TorManagerPrivate();
|
||||
|
||||
std::string torExecutablePath() const;
|
||||
bool createDataDir(const std::string &path);
|
||||
@ -104,6 +105,11 @@ TorManagerPrivate::TorManagerPrivate(TorManager *parent)
|
||||
control->set_statusChanged_callback([this](int new_status,int /*old_status*/) { controlStatusChanged(new_status); });
|
||||
}
|
||||
|
||||
TorManagerPrivate::~TorManagerPrivate()
|
||||
{
|
||||
delete(control);
|
||||
}
|
||||
|
||||
TorManager *TorManager::instance()
|
||||
{
|
||||
static TorManager *p = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user