diff --git a/uriloader/prefetch/nsPrefetchService.cpp b/uriloader/prefetch/nsPrefetchService.cpp index a21d8d7b2572e5e458b6b384f7a805041940e802..49e27689545271d3852819a691a2c9eb2107530b 100644 --- a/uriloader/prefetch/nsPrefetchService.cpp +++ b/uriloader/prefetch/nsPrefetchService.cpp @@ -469,7 +469,8 @@ nsPrefetchService::ProcessNextURI() // // 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)); }