Index: Source/WebCore/loader/DocumentLoader.cpp |
=================================================================== |
--- Source/WebCore/loader/DocumentLoader.cpp (revision 81427) |
+++ Source/WebCore/loader/DocumentLoader.cpp (working copy) |
@@ -284,7 +284,8 @@ |
{ |
// Both unloading the old page and parsing the new page may execute JavaScript which destroys the datasource |
// by starting a new load, so retain temporarily. |
- RefPtr<DocumentLoader> protect(this); |
+ RefPtr<Frame> protectFrame(m_frame); |
+ RefPtr<DocumentLoader> protectLoader(this); |
commitIfReady(); |
FrameLoader* frameLoader = DocumentLoader::frameLoader(); |