diff --git a/modules/multiscript/register_types.cpp b/modules/multiscript/register_types.cpp index 4b256567239..2f2fb53c400 100644 --- a/modules/multiscript/register_types.cpp +++ b/modules/multiscript/register_types.cpp @@ -27,6 +27,7 @@ void register_multiscript_types() { } void unregister_multiscript_types() { - if (script_multi_script); + if (script_multi_script) { memdelete(script_multi_script); + } }