GTK+ and Qt build fix after r139833.
[WebKit-https.git] / Source / WebCore / dom / Node.cpp
index ffab27b2be5e89d33b3c865c16884aafed50ed13..a0d1fef35bf81282da9bb92fd0db8d6fc7feda3c 100644 (file)
@@ -474,7 +474,7 @@ void Node::clearRareData()
     if (isElementNode())
         delete static_cast<ElementRareData*>(m_data.m_rareData);
     else
-        delete m_data.m_rareData;
+        delete static_cast<NodeRareData*>(m_data.m_rareData);
     m_data.m_renderer = renderer;
     clearFlag(HasRareDataFlag);
 }