Added checks for null pointers in Shutdown

Estetics
This commit is contained in:
tucenaber authored and Pieter Wuille committed 2012-10-25 20:45:38 +02:00
1 parent 344620e953
commit 3026baaa7c
1 file changed
+4 -2
+4 -2
View File
@@ -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;