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()
|
wallet_rpc_server::~wallet_rpc_server()
|
||||||
{
|
{
|
||||||
|
if (m_wallet)
|
||||||
|
delete m_wallet;
|
||||||
}
|
}
|
||||||
//------------------------------------------------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------------------------------------------------
|
||||||
void wallet_rpc_server::set_wallet(wallet2 *cr)
|
void wallet_rpc_server::set_wallet(wallet2 *cr)
|
||||||
|
|
Loading…
Reference in New Issue