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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp

Issue 2552673002: Eagerly dispose of ScheduledActions (reland.) (Closed)
Patch Set: Created 4 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
Index: third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp b/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp
index 403c3d14ba72dfbed30bcb54ea92f4982612322a..ba47dfcf9e047ded391f7639fff3418e579cd194 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ScheduledAction.cpp
@@ -63,6 +63,13 @@ DEFINE_TRACE(ScheduledAction) {
ScheduledAction::~ScheduledAction() {}
haraken 2016/12/05 10:53:27 Ditto.
sof 2016/12/05 14:07:09 Added.
+void ScheduledAction::dispose() {
+ m_code.dispose();
+ m_info.Clear();
+ m_function.clear();
+ m_scriptState.clear();
+}
+
void ScheduledAction::execute(ExecutionContext* context) {
if (context->isDocument()) {
LocalFrame* frame = toDocument(context)->frame();

Powered by Google App Engine
This is Rietveld 408576698