Unref correct object
This commit is contained in:
parent
095455caff
commit
332a434b8e
@ -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; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user