Bug 937582. r=mcmanus, a=abillings
authorHonza Bambas <honzab.moz@firemni.cz>
Mon, 02 Dec 2013 14:37:37 -0500
changeset 167595 72560d160a16a49e8245cce3507d7598834e87c6
parent 167594 986074bde47dd276518ba73794a85a11d0999131
child 167596 0b4d1b22e6e8e84ecd5f56a4f31499af0f2e93da
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcmanus, abillings
bugs937582
milestone27.0a2
Bug 937582. r=mcmanus, a=abillings
uriloader/prefetch/nsPrefetchService.cpp
--- a/uriloader/prefetch/nsPrefetchService.cpp
+++ b/uriloader/prefetch/nsPrefetchService.cpp
@@ -464,17 +464,18 @@ nsPrefetchService::ProcessNextURI()
             mCurrentNode->mURI->GetSpec(spec);
             LOG(("ProcessNextURI [%s]\n", spec.get()));
         }
 #endif
 
         //
         // if opening the channel fails, then just skip to the next uri
         //
-        rv = mCurrentNode->OpenChannel();
+        nsRefPtr<nsPrefetchNode> node = mCurrentNode;
+        rv = node->OpenChannel();
     }
     while (NS_FAILED(rv));
 }
 
 void
 nsPrefetchService::NotifyLoadRequested(nsPrefetchNode *node)
 {
     nsCOMPtr<nsIObserverService> observerService =