Fix the obvious mistakes I'd made in the previous patch for bug 468160.
authorJoe Drew <joe@drew.ca>
Wed, 10 Dec 2008 21:10:03 -0800
changeset 22591 b883595ba2ce265e62ef8ee75bc2317c5a494647
parent 22590 dd314af60eda2f8a7e6a88cca290bfc8e92b14b3
child 22592 c1164d43fef5a799833e87cd9d8fd11ad314008f
push idunknown
push userunknown
push dateunknown
bugs468160
milestone1.9.2a1pre
Fix the obvious mistakes I'd made in the previous patch for bug 468160.
modules/libpr0n/src/imgRequest.cpp
--- a/modules/libpr0n/src/imgRequest.cpp
+++ b/modules/libpr0n/src/imgRequest.cpp
@@ -1021,16 +1021,16 @@ imgRequest::OnChannelRedirect(nsIChannel
     if (NS_FAILED(rv))
       return rv;
   }
 
   RemoveFromCache();
 
   mChannel = newChannel;
 
-  newChannel->GetOriginalURI(mKeyURI);
+  newChannel->GetOriginalURI(getter_AddRefs(mKeyURI));
 
   // If we don't still have a cache entry, we don't want to refresh the cache.
-  if (uri && mCacheEntry)
+  if (mKeyURI && mCacheEntry)
     imgLoader::PutIntoCache(mKeyURI, mCacheEntry);
 
   return rv;
 }