Chromium Code Reviews| Index: Source/WebCore/dom/Document.cpp |
| =================================================================== |
| --- Source/WebCore/dom/Document.cpp (revision 139380) |
| +++ Source/WebCore/dom/Document.cpp (working copy) |
| @@ -2434,8 +2434,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, |