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

Forgot to assign the null pointer after destroying components.

This commit is contained in:
Sandu Liviu Catalin 2016-03-27 22:14:24 +03:00
parent d99a265682
commit 6647386d30

View File

@ -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);
} }
} }