Browse Source

Added checks for null pointers in Shutdown

Estetics
0.8
tucenaber 12 years ago committed by Pieter Wuille
parent
commit
3026baaa7c
  1. 2
      src/init.cpp

2
src/init.cpp

@ -78,7 +78,9 @@ void Shutdown(void* parg) @@ -78,7 +78,9 @@ void Shutdown(void* parg)
StopNode();
{
LOCK(cs_main);
if (pcoinsTip)
pcoinsTip->Flush();
if (pblocktree)
pblocktree->Flush();
delete pcoinsTip;
delete pcoinsdbview;

Loading…
Cancel
Save