From c9c7d4824fc1da806ad4fcbd259ddaed29270e29 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Thu, 1 Nov 2012 22:53:54 +0100 Subject: [PATCH] Add virtual destructor to CCoinsView --- src/main.h | 3 +++ 1 file changed, 3 insertions(+) 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 */