Commit 89f08037 authored by yhirano@chromium.org's avatar yhirano@chromium.org

[Fetch API] Fix ScriptState leak in Fetch API unittests.

This CL fixes memory leaks caused by not calling disposePerContextData on
ScriptState.

BUG=524875

Review URL: https://codereview.chromium.org/1314333002

git-svn-id: svn://svn.chromium.org/blink/trunk@201299 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent b1effae8
......@@ -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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment