mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 08:58:52 +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
@ -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