Index: Source/WebCore/dom/ContainerNode.cpp |
=================================================================== |
--- Source/WebCore/dom/ContainerNode.cpp (revision 112906) |
+++ Source/WebCore/dom/ContainerNode.cpp (working copy) |
@@ -732,6 +732,8 @@ |
void ContainerNode::resumePostAttachCallbacks() |
{ |
if (s_attachDepth == 1) { |
+ RefPtr<ContainerNode> protect(this); |
+ |
if (s_postAttachCallbackQueue) |
dispatchPostAttachCallbacks(); |
if (s_shouldReEnableMemoryCacheCallsAfterAttach) { |