1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-19 03:57:14 +01:00

Remove debugging code form the local event type.

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

View File

@ -2209,18 +2209,15 @@ void LocalEvent::Adaptable(SQInt32 type, bool inversed) noexcept
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
void LocalEvent::VMClose() noexcept void LocalEvent::VMClose() noexcept
{ {
LogInf("[LocalEvent::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();
m_OnExclude.Release();
m_OnCleared.Release();
m_OnRelease.Release();
// Release the reference to the specified user data
m_Data.Release();
LogInf("]LocalEvent::VMClose() %d %d",
sq_getrefcount(m_OnTrigger.GetVM(), &m_OnTrigger.GetEnv()),
sq_getrefcount(m_OnTrigger.GetVM(), &m_OnTrigger.GetFunc())
);
} }
// ================================================================================================ // ================================================================================================