[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
@@ -34,7 +34,6 @@ CPlayer::CPlayer(const CPlayer& Prototype)
: CUnit(Prototype),
m_pInfoInstance(CInfoInstance::GetInstance())
{
SAFE_ADDREF(m_pInfoInstance);
}
HRESULT CPlayer::Initialize_Prototype()
@@ -380,7 +379,9 @@ void CPlayer::Free()
SAFE_RELEASE(m_pLockOnMonster);
if (nullptr != m_pInfoInstance) {
m_pInfoInstance->Deregist_PlayerAlly(this);
CInfoInstance* pInfo = m_pInfoInstance;
m_pInfoInstance = nullptr;
pInfo->Deregist_PlayerAlly(this);
}
if (nullptr != m_pCallBack_Behavior) {
@@ -397,7 +398,6 @@ void CPlayer::Free()
SAFE_RELEASE(m_pCamPosition_TopDown_LookPart);
SAFE_RELEASE(m_pCamPosition_ShoulderPart);
SAFE_RELEASE(m_pEffectPool);
SAFE_RELEASE(m_pInfoInstance);
}
#ifdef _DEBUG