mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 02:25:40 +01:00
Added checks for null pointers in Shutdown
Estetics
This commit is contained in:
parent
344620e953
commit
3026baaa7c
@ -78,8 +78,10 @@ void Shutdown(void* parg)
|
||||
StopNode();
|
||||
{
|
||||
LOCK(cs_main);
|
||||
pcoinsTip->Flush();
|
||||
pblocktree->Flush();
|
||||
if (pcoinsTip)
|
||||
pcoinsTip->Flush();
|
||||
if (pblocktree)
|
||||
pblocktree->Flush();
|
||||
delete pcoinsTip;
|
||||
delete pcoinsdbview;
|
||||
delete pblocktree;
|
||||
|
Loading…
Reference in New Issue
Block a user