mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-25 14:04:27 +00:00
Added checks for null pointers in Shutdown
Estetics
This commit is contained in:
parent
344620e953
commit
3026baaa7c
@ -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…
x
Reference in New Issue
Block a user