From 4abcf3215f6322c467718c69d0968e123231f9fa Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Sat, 21 Apr 2012 20:50:07 +0200 Subject: [PATCH] Add virtual destructor to SGReferenced. --- simgear/structure/SGReferenced.hxx | 2 ++ 1 file changed, 2 insertions(+) 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) {} -- 2.39.5