mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
Added checks for null pointers in Shutdown
Estetics
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user