mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00: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
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue