aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-11-01 22:53:54 +0100
committerPieter Wuille <pieter.wuille@gmail.com>2012-11-01 22:54:06 +0100
commitc9c7d4824fc1da806ad4fcbd259ddaed29270e29 (patch)
treebe7dbf80c4890ac81c218acf0da94ff42d3828ca
parenta4f758b72c9ad99831821c8ca48309fbbb7f58e7 (diff)
Add virtual destructor to CCoinsView
-rw-r--r--src/main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 1751ccc562..d810bff986 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 */