Added checks for null pointers in Shutdown
Estetics
This commit is contained in:
parent
344620e953
commit
3026baaa7c
1 changed files with 4 additions and 2 deletions
|
@ -78,7 +78,9 @@ void Shutdown(void* parg)
|
||||||
StopNode();
|
StopNode();
|
||||||
{
|
{
|
||||||
LOCK(cs_main);
|
LOCK(cs_main);
|
||||||
|
if (pcoinsTip)
|
||||||
pcoinsTip->Flush();
|
pcoinsTip->Flush();
|
||||||
|
if (pblocktree)
|
||||||
pblocktree->Flush();
|
pblocktree->Flush();
|
||||||
delete pcoinsTip;
|
delete pcoinsTip;
|
||||||
delete pcoinsdbview;
|
delete pcoinsdbview;
|
||||||
|
|
Loading…
Reference in a new issue