Index: Source/WebCore/dom/Document.cpp |
=================================================================== |
--- Source/WebCore/dom/Document.cpp (revision 139381) |
+++ Source/WebCore/dom/Document.cpp (working copy) |
@@ -2356,8 +2356,8 @@ |
void Document::explicitClose() |
{ |
- if (m_parser) |
- m_parser->finish(); |
+ if (RefPtr<DocumentParser> parser = m_parser) |
+ parser->finish(); |
if (!m_frame) { |
// Because we have no frame, we don't know if all loading has completed, |