From 810ac82eaee5e11c24236ebf499ac8ebfb1fb0d8 Mon Sep 17 00:00:00 2001 From: Areloch Date: Mon, 20 Jun 2016 12:34:07 -0500 Subject: [PATCH] Adds a missed cleanup for currentNewObj. --- Engine/source/console/compiledEval.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Engine/source/console/compiledEval.cpp b/Engine/source/console/compiledEval.cpp index 88556cb46..d61a8f353 100644 --- a/Engine/source/console/compiledEval.cpp +++ b/Engine/source/console/compiledEval.cpp @@ -871,6 +871,7 @@ breakContinue: { Con::errorf(ConsoleLogEntry::General, "%s: Unable to instantiate non-SimObject class %s.", getFileLine(ip), (const char*)callArgv[1]); delete object; + currentNewObject = NULL; ip = failJump; break; }