From: ThorstenB Date: Sat, 21 Apr 2012 18:50:07 +0000 (+0200) Subject: Add virtual destructor to SGReferenced. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4abcf3215f6322c467718c69d0968e123231f9fa;p=simgear.git Add virtual destructor to SGReferenced. --- 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) {}