Browse Source

Added checks for null pointers in Shutdown

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

6
src/init.cpp

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

Loading…
Cancel
Save