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

Unified Diff: Source/modules/fetch/DataConsumerHandleTestUtil.cpp

Issue 1314333002: [Fetch API] Fix ScriptState leak in Fetch API unittests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/fetch/DataConsumerHandleTestUtil.cpp
diff --git a/Source/modules/fetch/DataConsumerHandleTestUtil.cpp b/Source/modules/fetch/DataConsumerHandleTestUtil.cpp
index ce6b1cb334e3255129904feb7d983fb26ce96c26..946f8683f24fb3a725f3319504546c1f557b25df 100644
--- a/Source/modules/fetch/DataConsumerHandleTestUtil.cpp
+++ b/Source/modules/fetch/DataConsumerHandleTestUtil.cpp
@@ -44,6 +44,9 @@ void DataConsumerHandleTestUtil::Thread::initialize()
void DataConsumerHandleTestUtil::Thread::shutdown()
{
m_executionContext = nullptr;
+ if (m_scriptState) {
+ m_scriptState->disposePerContextData();
+ }
m_scriptState = nullptr;
m_thread->shutdown();
if (m_isolateHolder) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698