mirror of
https://github.com/monero-project/monero.git
synced 2024-12-13 03:46:32 +02:00
fix #7784 - deinit wallet in wallet dtor
This commit is contained in:
parent
de3456e127
commit
9c6e0941cb
@ -1213,6 +1213,7 @@ wallet2::wallet2(network_type nettype, uint64_t kdf_rounds, bool unattended, std
|
|||||||
|
|
||||||
wallet2::~wallet2()
|
wallet2::~wallet2()
|
||||||
{
|
{
|
||||||
|
deinit();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wallet2::has_testnet_option(const boost::program_options::variables_map& vm)
|
bool wallet2::has_testnet_option(const boost::program_options::variables_map& vm)
|
||||||
@ -3745,9 +3746,11 @@ void wallet2::detach_blockchain(uint64_t height, std::map<std::pair<uint64_t, ui
|
|||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
bool wallet2::deinit()
|
bool wallet2::deinit()
|
||||||
{
|
{
|
||||||
m_is_initialized=false;
|
if(m_is_initialized) {
|
||||||
unlock_keys_file();
|
m_is_initialized = false;
|
||||||
m_account.deinit();
|
unlock_keys_file();
|
||||||
|
m_account.deinit();
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user