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

Remove debugging code form the basic event type.

This commit is contained in:
Sandu Liviu Catalin 2015-10-29 22:57:07 +02:00
parent 4b71f2006f
commit c71ac39bb8

View File

@ -1908,18 +1908,10 @@ void BasicEvent::Detach() noexcept
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
void BasicEvent::VMClose() noexcept void BasicEvent::VMClose() noexcept
{ {
LogInf("[BasicEvent::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 callback
m_OnTrigger.Release(); m_OnTrigger.Release();
// Release the reference to the specified user data
LogInf("]BasicEvent::VMClose() %d %d", m_Data.Release();
sq_getrefcount(m_OnTrigger.GetVM(), &m_OnTrigger.GetEnv()),
sq_getrefcount(m_OnTrigger.GetVM(), &m_OnTrigger.GetFunc())
);
} }
// ================================================================================================ // ================================================================================================