mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
wallet_rpc_server: fix wallet leak on error exit
Makes it easier to debug leaks
This commit is contained in:
parent
7a9a4a6669
commit
eadaa6aaa3
@ -89,6 +89,8 @@ namespace tools
|
||||
//------------------------------------------------------------------------------------------------------------------------------
|
||||
wallet_rpc_server::~wallet_rpc_server()
|
||||
{
|
||||
if (m_wallet)
|
||||
delete m_wallet;
|
||||
}
|
||||
//------------------------------------------------------------------------------------------------------------------------------
|
||||
void wallet_rpc_server::set_wallet(wallet2 *cr)
|
||||
|
Loading…
Reference in New Issue
Block a user