Unref correct object

This commit is contained in:
Yevgen Muntyan 2015-12-31 04:49:08 -08:00
parent 095455caff
commit 332a434b8e

View File

@ -51,7 +51,7 @@ public:
auto* tmp = m_obj; auto* tmp = m_obj;
m_obj = nullptr; m_obj = nullptr;
if (tmp) if (tmp)
ObjRefUnrefHelper::unref(m_obj); ObjRefUnrefHelper::unref(tmp);
} }
ObjClass* get() const { return m_obj; } ObjClass* get() const { return m_obj; }