Index: Source/core/xml/parser/XMLDocumentParser.cpp |
=================================================================== |
--- Source/core/xml/parser/XMLDocumentParser.cpp (revision 158203) |
+++ Source/core/xml/parser/XMLDocumentParser.cpp (working copy) |
@@ -349,6 +349,10 @@ |
return; |
} |
+ // JavaScript can detach the parser. Make sure this is not released |
+ // before the end of this method. |
+ RefPtr<XMLDocumentParser> protect(this); |
+ |
doWrite(source.toString()); |
if (isStopped()) |