diff --git a/src/main.h b/src/main.h index 1751ccc56..d810bff98 100644 --- a/src/main.h +++ b/src/main.h @@ -1825,6 +1825,9 @@ public: // Calculate statistics about the unspent transaction output set virtual bool GetStats(CCoinsStats &stats); + + // As we use CCoinsViews polymorphically, have a virtual destructor + virtual ~CCoinsView() {}; }; /** CCoinsView backed by another CCoinsView */