Index: Source/core/html/imports/HTMLImportChild.cpp |
diff --git a/Source/core/html/imports/HTMLImportChild.cpp b/Source/core/html/imports/HTMLImportChild.cpp |
index f89b3e59f8f8725e109f228cf8d1edf5b830a2c5..7143a0b5be6d484d92a7ea7677d6f9007ccaf2af 100644 |
--- a/Source/core/html/imports/HTMLImportChild.cpp |
+++ b/Source/core/html/imports/HTMLImportChild.cpp |
@@ -39,12 +39,14 @@ |
namespace WebCore { |
-HTMLImportChild::HTMLImportChild(const KURL& url, bool createdByParser) |
+HTMLImportChild::HTMLImportChild(Document& master, const KURL& url, bool createdByParser) |
: HTMLImport(createdByParser) |
+ , m_master(master) |
, m_url(url) |
, m_customElementMicrotaskStep(0) |
, m_client(0) |
{ |
+ m_master.guardRef(); |
} |
HTMLImportChild::~HTMLImportChild() |
@@ -60,6 +62,8 @@ HTMLImportChild::~HTMLImportChild() |
if (m_client) |
m_client->importChildWasDestroyed(this); |
+ |
+ m_master.guardDeref(); |
} |
void HTMLImportChild::wasAlreadyLoaded() |