diff --git a/dom/base/TimeoutManager.cpp b/dom/base/TimeoutManager.cpp index f0ec9c7809cd..a9e64e3e4934 100644 --- a/dom/base/TimeoutManager.cpp +++ b/dom/base/TimeoutManager.cpp @@ -793,6 +793,7 @@ TimeoutManager::RunTimeout(const TimeStamp& aNow, const TimeStamp& aTargetDeadli for (RefPtr timeout = mTimeouts.GetFirst(); timeout != nullptr; timeout = next) { + next = timeout->getNext(); // We should only execute callbacks for the set of expired Timeout // objects we computed above. if (timeout->mFiringId != firingId) {