1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-18 19:47: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 void GlobalEvent::VMClose() noexcept
{ {
LogInf("[GlobalEvent::VMClose() %d %d", // Release the reference to the specified callbacks
sq_getrefcount(m_OnTrigger.GetVM(), &m_OnTrigger.GetEnv()),
sq_getrefcount(m_OnTrigger.GetVM(), &m_OnTrigger.GetFunc())
);
// Release the reference to the specified callback
m_OnTrigger.Release(); m_OnTrigger.Release();
m_OnInclude.Release();
LogInf("]GlobalEvent::VMClose() %d %d", m_OnExclude.Release();
sq_getrefcount(m_OnTrigger.GetVM(), &m_OnTrigger.GetEnv()), m_OnCleared.Release();
sq_getrefcount(m_OnTrigger.GetVM(), &m_OnTrigger.GetFunc()) m_OnRelease.Release();
); // Release the reference to the specified user data
m_Data.Release();
} }
// ================================================================================================ // ================================================================================================