Fixed crash
This commit is contained in:
parent
a8e26f3a0c
commit
26a9e499a4
@ -44,7 +44,6 @@ class observer_ptr : public Observer
|
||||
|
||||
~observer_ptr()
|
||||
{
|
||||
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_mutex);
|
||||
if (_ptr) _ptr->removeObserver(this);
|
||||
}
|
||||
|
||||
@ -52,8 +51,6 @@ class observer_ptr : public Observer
|
||||
{
|
||||
if (&rp==this) return *this;
|
||||
|
||||
ref_ptr<T> tmp_ptr(rp.lock());
|
||||
|
||||
OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_mutex);
|
||||
|
||||
if (_ptr==rp._ptr) return *this;
|
||||
|
Loading…
Reference in New Issue
Block a user