Index: Source/core/html/imports/HTMLImportTreeRoot.cpp |
diff --git a/Source/core/html/imports/HTMLImportTreeRoot.cpp b/Source/core/html/imports/HTMLImportTreeRoot.cpp |
index 35371eb2b5f7e34445e5434999a80c2ee22458a1..842b5e41a5d43d7ef92f73492ee7566ad1a70d99 100644 |
--- a/Source/core/html/imports/HTMLImportTreeRoot.cpp |
+++ b/Source/core/html/imports/HTMLImportTreeRoot.cpp |
@@ -28,11 +28,17 @@ HTMLImportTreeRoot::HTMLImportTreeRoot(Document* document) |
HTMLImportTreeRoot::~HTMLImportTreeRoot() |
{ |
#if !ENABLE(OILPAN) |
+ dispose(); |
+#endif |
+} |
+ |
+void HTMLImportTreeRoot::dispose() |
+{ |
for (size_t i = 0; i < m_imports.size(); ++i) |
- m_imports[i]->importDestroyed(); |
+ m_imports[i]->dispose(); |
m_imports.clear(); |
m_document = nullptr; |
-#endif |
+ m_recalcTimer.stop(); |
} |
Document* HTMLImportTreeRoot::document() const |