diff --git a/Source/Project64/UserInterface/Debugger/ScriptSystem.cpp b/Source/Project64/UserInterface/Debugger/ScriptSystem.cpp index 592b7a944..92ab8e8a1 100644 --- a/Source/Project64/UserInterface/Debugger/ScriptSystem.cpp +++ b/Source/Project64/UserInterface/Debugger/ScriptSystem.cpp @@ -62,7 +62,7 @@ void CScriptSystem::RunScript(const char * path) { CGuard guard(m_CS); CScriptInstance* scriptInstance = new CScriptInstance(m_Debugger); - char* pathSaved = (char*)malloc(strlen(path)+1); // freed via DeleteStoppedInstances + char* pathSaved = (char*)malloc(strlen(path)+1); // Freed via DeleteStoppedInstances strcpy(pathSaved, path); m_RunningInstances.push_back({ pathSaved, scriptInstance });