diff --git a/simgear/structure/SGReferenced.hxx b/simgear/structure/SGReferenced.hxx index 6a3038f3..343d4c4c 100644 --- a/simgear/structure/SGReferenced.hxx +++ b/simgear/structure/SGReferenced.hxx @@ -32,6 +32,8 @@ class SGReferenced { public: SGReferenced(void) : _refcount(0u) {} + virtual ~SGReferenced() + {} /// Do not copy reference counts. Each new object has it's own counter SGReferenced(const SGReferenced&) : _refcount(0u) {}