[fix] Release_Patch

This commit is contained in:
kimnuri
2025-11-27 23:03:11 +09:00
parent 569a9a30c7
commit d153bdb6a7
14 changed files with 46 additions and 12 deletions
+3 -3
View File
@@ -14,7 +14,6 @@ CMonster::CMonster(const CMonster& Prototype)
: CUnit(Prototype),
m_pInfoInstance(CInfoInstance::GetInstance())
{
SAFE_ADDREF(m_pInfoInstance);
}
HRESULT CMonster::Initialize_Prototype()
@@ -140,9 +139,10 @@ void CMonster::Free()
SAFE_RELEASE(m_pTarget);
if (nullptr != m_pInfoInstance){
m_pInfoInstance->Deregist_ActiveMonster(this);
CInfoInstance* pInfo = m_pInfoInstance;
m_pInfoInstance = nullptr;
pInfo->Deregist_ActiveMonster(this);
}
SAFE_RELEASE(m_pInfoInstance);
}
#ifdef _DEBUG