qt: Plug many memory leaks

https://github.com/bitcoin/bitcoin/pull/9190
This commit is contained in:
Wladimir J. van der Laan
2016-11-18 16:35:14 +01:00
committed by lateminer
parent d39badf3b4
commit f6a1ce534f

View File

@@ -530,12 +530,12 @@ void BitcoinGUI::setClientModel(ClientModel *clientModel)
// Propagate cleared model to child objects
rpcConsole->setClientModel(nullptr);
#ifdef ENABLE_WALLET
walletFrame->setClientModel(nullptr);
if (walletFrame)
{
walletFrame->setClientModel(nullptr);
}
#endif // ENABLE_WALLET
unitDisplayControl->setOptionsModel(nullptr);
// TODO: FIX
// connectionsControl->setClientModel(nullptr);
}
}