mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-01-19 03:57:14 +01:00
Implemented a temporary workaround for event types that prevents crashes when anonymous functions are used.
This commit is contained in:
parent
ce5957395a
commit
054d81e4f1
@ -1909,7 +1909,7 @@ void BasicEvent::Detach() noexcept
|
|||||||
void BasicEvent::VMClose() noexcept
|
void BasicEvent::VMClose() noexcept
|
||||||
{
|
{
|
||||||
// Release the reference to the specified callback
|
// Release the reference to the specified callback
|
||||||
m_OnTrigger.Release();
|
m_OnTrigger.Release2();
|
||||||
// Release the reference to the specified user data
|
// Release the reference to the specified user data
|
||||||
m_Data.Release();
|
m_Data.Release();
|
||||||
}
|
}
|
||||||
|
@ -2067,11 +2067,11 @@ void GlobalEvent::Adaptable(SQInt32 type) noexcept
|
|||||||
void GlobalEvent::VMClose() noexcept
|
void GlobalEvent::VMClose() noexcept
|
||||||
{
|
{
|
||||||
// Release the reference to the specified callbacks
|
// Release the reference to the specified callbacks
|
||||||
m_OnTrigger.Release();
|
m_OnTrigger.Release2();
|
||||||
m_OnInclude.Release();
|
m_OnInclude.Release2();
|
||||||
m_OnExclude.Release();
|
m_OnExclude.Release2();
|
||||||
m_OnCleared.Release();
|
m_OnCleared.Release2();
|
||||||
m_OnRelease.Release();
|
m_OnRelease.Release2();
|
||||||
// Release the reference to the specified user data
|
// Release the reference to the specified user data
|
||||||
m_Data.Release();
|
m_Data.Release();
|
||||||
}
|
}
|
||||||
|
@ -2210,11 +2210,11 @@ void LocalEvent::Adaptable(SQInt32 type, bool inversed) noexcept
|
|||||||
void LocalEvent::VMClose() noexcept
|
void LocalEvent::VMClose() noexcept
|
||||||
{
|
{
|
||||||
// Release the reference to the specified callbacks
|
// Release the reference to the specified callbacks
|
||||||
m_OnTrigger.Release();
|
m_OnTrigger.Release2();
|
||||||
m_OnInclude.Release();
|
m_OnInclude.Release2();
|
||||||
m_OnExclude.Release();
|
m_OnExclude.Release2();
|
||||||
m_OnCleared.Release();
|
m_OnCleared.Release2();
|
||||||
m_OnRelease.Release();
|
m_OnRelease.Release2();
|
||||||
// Release the reference to the specified user data
|
// Release the reference to the specified user data
|
||||||
m_Data.Release();
|
m_Data.Release();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user