Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(520)

Unified Diff: Source/core/frame/DOMTimer.cpp

Issue 766183004: Dispose of DOMTimer upon explicit ExecutionContext unregistration. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/frame/DOMTimer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/DOMTimer.cpp
diff --git a/Source/core/frame/DOMTimer.cpp b/Source/core/frame/DOMTimer.cpp
index 482c1304a09c65e70cc17747cf92514b691d73e6..a5c6b4d365e4159e07dc6cfba4be18ee7556c8a3 100644
--- a/Source/core/frame/DOMTimer.cpp
+++ b/Source/core/frame/DOMTimer.cpp
@@ -108,6 +108,13 @@ DOMTimer::~DOMTimer()
{
}
+void DOMTimer::dispose()
+{
+ m_action = nullptr;
+ m_userGestureToken = nullptr;
+ stop();
+}
+
int DOMTimer::timeoutID() const
{
return m_timeoutID;
« no previous file with comments | « Source/core/frame/DOMTimer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698