Skip to content
Permalink
Browse files

- fixed leaking when using cyclic reference in for loop

  • Loading branch information...
christophhart committed Oct 26, 2017
1 parent 35fa319 commit a893b8baa0d1438c28b31acbf510f24bd1b422dc
Showing with 7 additions and 1 deletion.
  1. +7 −1 hi_scripting/scripting/engine/JavascriptEngineStatements.cpp
@@ -283,10 +283,16 @@ struct HiseJavascriptEngine::RootObject::LoopStatement : public Statement

index++;

if (r == returnWasHit) return r;
if (r == returnWasHit)
{
currentObject = var();
return r;
}
if (r == breakWasHit) break;
}

currentObject = var();

return ok;
}
else

0 comments on commit a893b8b

Please sign in to comment.
You can’t perform that action at this time.