Occurs when Script.clearInterval() called inside Script.setInterval callback
Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all
Unified · Split
| @@ -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 it | 616 | // this timer is done, we can kill it |
| 617 | _timerFunctionMap.remove(callingTimer); | ||
| 617 | delete callingTimer; | 618 | delete callingTimer; |
| 618 | } | 619 | } |
| 619 | } | 620 | } |