summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/commodity.h2
-rw-r--r--src/pool.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/commodity.h b/src/commodity.h
index d5f18844..3370f3f2 100644
--- a/src/commodity.h
+++ b/src/commodity.h
@@ -185,7 +185,7 @@ protected:
symbol(_symbol), precision(0), searched(false) {
TRACE_CTOR(base_t, "const string&");
}
- ~base_t() {
+ virtual ~base_t() {
TRACE_DTOR(base_t);
}
diff --git a/src/pool.h b/src/pool.h
index c3d701b9..85de73a9 100644
--- a/src/pool.h
+++ b/src/pool.h
@@ -84,7 +84,7 @@ public:
explicit commodity_pool_t();
- ~commodity_pool_t() {
+ virtual ~commodity_pool_t() {
TRACE_DTOR(commodity_pool_t);
foreach (commodities_map::value_type pair, commodities)
checked_delete(pair.second);