History

Fix timer bug with script engine

Occurs when Script.clearInterval() called inside Script.setInterval callback

Atlante45 committed 12 years ago

Commit 66a36831 parent 42a84b71 file · +1 −0Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+1−0
@@ -614,6 +614,7 @@ void ScriptEngine::timerFired() { · 613 unmodified lines
614 614
615 if (!callingTimer->isActive()) {615 if (!callingTimer->isActive()) {
616 // this timer is done, we can kill it616 // this timer is done, we can kill it
617 _timerFunctionMap.remove(callingTimer);
617 delete callingTimer;618 delete callingTimer;
618 }619 }
619}620}