[DEBUG] correct expired function in WeakPtr

This commit is contained in:
Edouard DUPIN 2016-07-24 14:27:06 +02:00
parent 7070539e01
commit 7b1d20dd43

View File

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