mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-02 18:17:02 -04:00
Added delete of TorControl in destructor of TorManagerPrivate
This commit is contained in:
parent
8d3046d157
commit
97f7e0f936
1 changed files with 6 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue