Skip to content

Commit

Permalink
[BUG] Add proper virtual dtor for CActiveDeterministicMasternodeManager
Browse files Browse the repository at this point in the history
  • Loading branch information
random-zebra committed Apr 11, 2021
1 parent e65d7b7 commit 295869b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/activemasternode.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class CActiveDeterministicMasternodeManager : public CValidationInterface
CActiveMasternodeInfo info;

public:
virtual ~CActiveDeterministicMasternodeManager() = default;
virtual void UpdatedBlockTip(const CBlockIndex* pindexNew, const CBlockIndex* pindexFork, bool fInitialDownload);

void Init();
Expand Down
2 changes: 2 additions & 0 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,8 @@ void PrepareShutdown()

if (activeMasternodeManager) {
UnregisterValidationInterface(activeMasternodeManager);
delete activeMasternodeManager;
activeMasternodeManager = nullptr;
}

#if ENABLE_ZMQ
Expand Down

0 comments on commit 295869b

Please sign in to comment.