Added mutex lock to destructor.

This commit is contained in:
Robert Osfield 2010-02-19 16:04:33 +00:00
parent 8f11af8d3e
commit b807fc83fe

View File

@ -44,6 +44,7 @@ class observer_ptr : public Observer
~observer_ptr()
{
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(*getObserverMutex());
if (_ptr) _ptr->removeObserver(this);
}