Skip to content

Commit

Permalink
Adds a missed cleanup for currentNewObj.
Browse files Browse the repository at this point in the history
  • Loading branch information
Areloch committed Jun 20, 2016
1 parent 3cfc6f7 commit 810ac82
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Engine/source/console/compiledEval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -871,6 +871,7 @@ ConsoleValueRef CodeBlock::exec(U32 ip, const char *functionName, Namespace *thi
{
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;
}
Expand Down

0 comments on commit 810ac82

Please sign in to comment.