Index: WebCore/html/HTMLFrameOwnerElement.cpp |
=================================================================== |
--- WebCore/html/HTMLFrameOwnerElement.cpp (revision 68292) |
+++ WebCore/html/HTMLFrameOwnerElement.cpp (working copy) |
@@ -52,8 +52,9 @@ |
void HTMLFrameOwnerElement::willRemove() |
{ |
if (Frame* frame = contentFrame()) { |
+ RefPtr<Frame> protect(frame); |
+ frame->loader()->frameDetached(); |
frame->disconnectOwnerElement(); |
- frame->loader()->frameDetached(); |
} |
HTMLElement::willRemove(); |