mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Forgot to assign the null pointer after destroying components.
This commit is contained in:
parent
d99a265682
commit
6647386d30
@ -89,19 +89,19 @@ void DestroyComponents()
|
|||||||
if (_Cmd)
|
if (_Cmd)
|
||||||
{
|
{
|
||||||
SQMOD_MANAGEDPTR_DEL(CmdManager, _Cmd);
|
SQMOD_MANAGEDPTR_DEL(CmdManager, _Cmd);
|
||||||
SQMOD_MANAGEDPTR_MAKE(CmdManager, nullptr);
|
_Cmd = SQMOD_MANAGEDPTR_MAKE(CmdManager, nullptr);
|
||||||
}
|
}
|
||||||
// Destroy core component
|
// Destroy core component
|
||||||
if (_Core)
|
if (_Core)
|
||||||
{
|
{
|
||||||
SQMOD_MANAGEDPTR_DEL(Core, _Core);
|
SQMOD_MANAGEDPTR_DEL(Core, _Core);
|
||||||
SQMOD_MANAGEDPTR_MAKE(Core, nullptr);
|
_Core = SQMOD_MANAGEDPTR_MAKE(Core, nullptr);
|
||||||
}
|
}
|
||||||
// Destroy logger component
|
// Destroy logger component
|
||||||
if (_Log)
|
if (_Log)
|
||||||
{
|
{
|
||||||
SQMOD_MANAGEDPTR_DEL(Logger, _Log);
|
SQMOD_MANAGEDPTR_DEL(Logger, _Log);
|
||||||
SQMOD_MANAGEDPTR_MAKE(Logger, nullptr);
|
_Log = SQMOD_MANAGEDPTR_MAKE(Logger, nullptr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user