mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-27 15:47:30 -04:00
fixed a few errors reported by valgrind
This commit is contained in:
parent
f6892066bc
commit
8af6ca9fb7
3 changed files with 6 additions and 1 deletions
|
@ -161,6 +161,8 @@ OpenPGPSDKHandler::OpenPGPSDKHandler(const std::string& pubring, const std::stri
|
||||||
++i ;
|
++i ;
|
||||||
}
|
}
|
||||||
_pubring_last_update_time = time(NULL) ;
|
_pubring_last_update_time = time(NULL) ;
|
||||||
|
_pubring_changed = false;
|
||||||
|
|
||||||
RsErr() << "Pubring read successfully." ;
|
RsErr() << "Pubring read successfully." ;
|
||||||
|
|
||||||
if(secring_exist)
|
if(secring_exist)
|
||||||
|
|
|
@ -78,9 +78,11 @@ void PendingOperation::finishWithSuccess()
|
||||||
|
|
||||||
if (!m_finished) {
|
if (!m_finished) {
|
||||||
m_finished = true;
|
m_finished = true;
|
||||||
mFinishedCallback();
|
|
||||||
if (isSuccess())
|
if (isSuccess())
|
||||||
mSuccessCallback();
|
mSuccessCallback();
|
||||||
|
|
||||||
|
mFinishedCallback();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -65,6 +65,7 @@ static std::ostream& torctrldebug()
|
||||||
using namespace Tor;
|
using namespace Tor;
|
||||||
|
|
||||||
TorControl::TorControl()
|
TorControl::TorControl()
|
||||||
|
: mControlPort(0),mSocksPort(0),mStatus(NotConnected), mTorStatus(TorOffline),mHasOwnership(false)
|
||||||
{
|
{
|
||||||
mSocket = new TorControlSocket(this);
|
mSocket = new TorControlSocket(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue