Skip to content

Commit 44f2ae3

Browse files
committed
QPID-7235: add virtual destructor to Observers to ensure cleanup if subclassed
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1741494 13f79535-47bb-0310-9956-ffa450edef68
1 parent 0d64ff4 commit 44f2ae3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qpid/cpp/src/qpid/broker/Observers.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class Observers
6666
return i == observers.end() ?
6767
boost::shared_ptr<T>() : boost::dynamic_pointer_cast<T>(*i);
6868
}
69+
virtual ~Observers() {}
6970

7071
protected:
7172
typedef std::set<ObserverPtr> Set;

0 commit comments

Comments
 (0)