Browse Source

Add virtual destructor to CCoinsView

0.8
Pieter Wuille 12 years ago
parent
commit
c9c7d4824f
  1. 3
      src/main.h

3
src/main.h

@ -1825,6 +1825,9 @@ public:
// Calculate statistics about the unspent transaction output set // Calculate statistics about the unspent transaction output set
virtual bool GetStats(CCoinsStats &stats); virtual bool GetStats(CCoinsStats &stats);
// As we use CCoinsViews polymorphically, have a virtual destructor
virtual ~CCoinsView() {};
}; };
/** CCoinsView backed by another CCoinsView */ /** CCoinsView backed by another CCoinsView */

Loading…
Cancel
Save