[DEBUG] correct expired function in WeakPtr
This commit is contained in:
parent
7070539e01
commit
7b1d20dd43
@ -240,7 +240,7 @@ bool ememory::WeakPtr<EMEMORY_TYPE>::expired() const {
|
||||
if (m_counter == nullptr) {
|
||||
return true;
|
||||
}
|
||||
return m_counter->getCountShared() != 0;
|
||||
return m_counter->getCountShared() == 0;
|
||||
}
|
||||
|
||||
template<typename EMEMORY_TYPE>
|
||||
|
Loading…
x
Reference in New Issue
Block a user