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

Unified Diff: Source/bindings/core/v8/V8PerIsolateData.cpp

Issue 1360723003: Non-Oilpan Memory: Fix HTMLViewSourceDocument and WebLeakDetector. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 3 months 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/bindings/core/v8/V8PerIsolateData.h ('k') | Source/core/html/HTMLViewSourceDocument.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8PerIsolateData.cpp
diff --git a/Source/bindings/core/v8/V8PerIsolateData.cpp b/Source/bindings/core/v8/V8PerIsolateData.cpp
index 41aa5ef3b846c2819f832a0a5859f85f7657bd52..d9c7c0d5e91cacf12f47987d09eb3d9627bb5514 100644
--- a/Source/bindings/core/v8/V8PerIsolateData.cpp
+++ b/Source/bindings/core/v8/V8PerIsolateData.cpp
@@ -218,6 +218,13 @@ v8::Local<v8::Context> V8PerIsolateData::ensureScriptRegexpContext()
return m_scriptRegexpScriptState->context();
}
+void V8PerIsolateData::clearScriptRegexpContext()
+{
+ if (m_scriptRegexpScriptState)
+ m_scriptRegexpScriptState->disposePerContextData();
+ m_scriptRegexpScriptState.clear();
+}
+
bool V8PerIsolateData::hasInstance(const WrapperTypeInfo* untrustedWrapperTypeInfo, v8::Local<v8::Value> value)
{
return hasInstance(untrustedWrapperTypeInfo, value, m_domTemplateMapForMainWorld)
« no previous file with comments | « Source/bindings/core/v8/V8PerIsolateData.h ('k') | Source/core/html/HTMLViewSourceDocument.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698