Index: Source/core/css/CSSImportRule.cpp |
diff --git a/Source/core/css/CSSImportRule.cpp b/Source/core/css/CSSImportRule.cpp |
index 8d5af2f77094b536a80fbebe88197d11685b9008..e7d6219cbc1546c58aab9317b4eb6fb0dbaaf5a1 100644 |
--- a/Source/core/css/CSSImportRule.cpp |
+++ b/Source/core/css/CSSImportRule.cpp |
@@ -41,9 +41,7 @@ CSSImportRule::~CSSImportRule() |
#if !ENABLE(OILPAN) |
if (m_styleSheetCSSOMWrapper) |
m_styleSheetCSSOMWrapper->clearOwnerRule(); |
- // MediaList and the parent CSSImportRule are both on the oilpan heap and die together. |
- // Therefor clearing is not needed nor allowed since it could be touching already |
- // finalized memory. |
+ |
if (m_mediaCSSOMWrapper) |
m_mediaCSSOMWrapper->clearParentRule(); |
#endif // ENABLE(OILPAN) |