Index: Source/WebCore/loader/SubresourceLoader.cpp |
=================================================================== |
--- Source/WebCore/loader/SubresourceLoader.cpp (revision 132812) |
+++ Source/WebCore/loader/SubresourceLoader.cpp (working copy) |
@@ -164,6 +164,7 @@ |
{ |
// Store the previous URL because the call to ResourceLoader::willSendRequest will modify it. |
KURL previousURL = request().url(); |
+ RefPtr<SubresourceLoader> protect(this); |
ResourceLoader::willSendRequest(newRequest, redirectResponse); |
if (!previousURL.isNull() && !newRequest.isNull() && previousURL != newRequest.url()) { |