Fix for 3710721 and 3504114, crashes because of bad ownership model for list markers.
[WebKit-https.git] / WebCore / khtml / rendering / render_container.cpp
index de491be27b71cc9a27b1f956571cc182801518c3..a0d554e2499b73c1f6e7485d8f10d88d9f2d4ac4 100644 (file)
@@ -66,7 +66,8 @@ void RenderContainer::detach()
         n->removeFromObjectLists();
         n->setParent(0);
         next = n->nextSibling();
-        n->detach();
+        if (!n->isListMarker())
+            n->detach();
     }
     m_first = 0;
     m_last = 0;