Bug 937582. r=mcmanus
authorHonza Bambas <honzab.moz@firemni.cz>
Mon, 02 Dec 2013 14:37:37 -0500
changeset 173985 044c28763a8d3fe3871b1d6cfadf67a62343b326
parent 173984 b47cf733fa3415965e9919c6aaf6187180da8dab
child 173986 492fbc8095b807132f96446fcc6a8db62faf9ff8
child 174021 f8b57cbe128a54b3250d3aa37c2905cd0c0a2a4f
push id445
push userffxbld
push dateMon, 10 Mar 2014 22:05:19 +0000
treeherdermozilla-release@dc38b741b04e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmcmanus
bugs937582
milestone28.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 937582. r=mcmanus
uriloader/prefetch/nsPrefetchService.cpp
--- a/uriloader/prefetch/nsPrefetchService.cpp
+++ b/uriloader/prefetch/nsPrefetchService.cpp
@@ -468,17 +468,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 =