From 2f0d7d1444e047170ff00782ba43b1f3b6119b6d Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Thu, 29 Oct 2015 22:57:14 +0200 Subject: [PATCH] Remove debugging code form the global event type. --- source/Event/Global.cpp | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/source/Event/Global.cpp b/source/Event/Global.cpp index 951e7e49..898f8a47 100644 --- a/source/Event/Global.cpp +++ b/source/Event/Global.cpp @@ -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(); } // ================================================================================================