1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 00:37:15 +01:00

Remove debugging code form the global event type.

This commit is contained in:
Sandu Liviu Catalin 2015-10-29 22:57:14 +02:00
parent c71ac39bb8
commit 2f0d7d1444

View File

@ -2066,18 +2066,14 @@ void GlobalEvent::Adaptable(SQInt32 type) noexcept
// ------------------------------------------------------------------------------------------------
void GlobalEvent::VMClose() noexcept
{
LogInf("[GlobalEvent::VMClose() %d %d",
sq_getrefcount(m_OnTrigger.GetVM(), &m_OnTrigger.GetEnv()),
sq_getrefcount(m_OnTrigger.GetVM(), &m_OnTrigger.GetFunc())
);
// Release the reference to the specified callback
// Release the reference to the specified callbacks
m_OnTrigger.Release();
LogInf("]GlobalEvent::VMClose() %d %d",
sq_getrefcount(m_OnTrigger.GetVM(), &m_OnTrigger.GetEnv()),
sq_getrefcount(m_OnTrigger.GetVM(), &m_OnTrigger.GetFunc())
);
m_OnInclude.Release();
m_OnExclude.Release();
m_OnCleared.Release();
m_OnRelease.Release();
// Release the reference to the specified user data
m_Data.Release();
}
// ================================================================================================