| Index: Source/core/html/imports/HTMLImportChild.cpp
|
| diff --git a/Source/core/html/imports/HTMLImportChild.cpp b/Source/core/html/imports/HTMLImportChild.cpp
|
| index d6c45866c5e1a708b6c777047b1f0d2eacbdc195..910f1dc2618c447ee0a37a064f38dbebea3a8b30 100644
|
| --- a/Source/core/html/imports/HTMLImportChild.cpp
|
| +++ b/Source/core/html/imports/HTMLImportChild.cpp
|
| @@ -58,9 +58,6 @@ HTMLImportChild::~HTMLImportChild()
|
| #if !ENABLE(OILPAN)
|
| // dispose() should be called before the destruction.
|
| ASSERT(!m_loader);
|
| -
|
| - if (m_client)
|
| - m_client->importChildWasDestroyed(this);
|
| #endif
|
| }
|
|
|
| @@ -108,6 +105,11 @@ void HTMLImportChild::dispose()
|
| ASSERT(m_loader);
|
| m_loader->removeImport(this);
|
| m_loader = nullptr;
|
| +
|
| + if (m_client) {
|
| + m_client->importChildWasDisposed(this);
|
| + m_client = nullptr;
|
| + }
|
| }
|
|
|
| Document* HTMLImportChild::document() const
|
|
|