Added mutex lock to destructor.
This commit is contained in:
parent
8f11af8d3e
commit
b807fc83fe
@ -44,6 +44,7 @@ class observer_ptr : public Observer
|
|||||||
|
|
||||||
~observer_ptr()
|
~observer_ptr()
|
||||||
{
|
{
|
||||||
|
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(*getObserverMutex());
|
||||||
if (_ptr) _ptr->removeObserver(this);
|
if (_ptr) _ptr->removeObserver(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user