Added checks for null pointers in Shutdown

Estetics
This commit is contained in:
tucenaber 2012-10-23 22:41:47 +02:00 committed by Pieter Wuille
parent 344620e953
commit 3026baaa7c

View File

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