Fixed crash

This commit is contained in:
Robert Osfield 2010-02-16 14:05:49 +00:00
parent a8e26f3a0c
commit 26a9e499a4

View File

@ -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;