| Index: Source/core/html/parser/HTMLScriptRunner.cpp
|
| diff --git a/Source/core/html/parser/HTMLScriptRunner.cpp b/Source/core/html/parser/HTMLScriptRunner.cpp
|
| index 8029b33116645f1136bb6b8c0fa55cce7337700e..ec2442f8a305c2f3ac57b8de2ce1792a554a64c1 100644
|
| --- a/Source/core/html/parser/HTMLScriptRunner.cpp
|
| +++ b/Source/core/html/parser/HTMLScriptRunner.cpp
|
| @@ -74,10 +74,12 @@ void HTMLScriptRunner::detach()
|
| return;
|
|
|
| m_parserBlockingScript.stopWatchingForLoad(this);
|
| + m_parserBlockingScript.releaseElementAndClear();
|
|
|
| while (!m_scriptsToExecuteAfterParsing.isEmpty()) {
|
| PendingScript pendingScript = m_scriptsToExecuteAfterParsing.takeFirst();
|
| pendingScript.stopWatchingForLoad(this);
|
| + pendingScript.releaseElementAndClear();
|
| }
|
| m_document = nullptr;
|
| }
|
|
|