diff --git a/netwerk/cache/src/nsCacheEntry.cpp b/netwerk/cache/src/nsCacheEntry.cpp index 21349f6e536b..8f78e35cb7e5 100644 --- a/netwerk/cache/src/nsCacheEntry.cpp +++ b/netwerk/cache/src/nsCacheEntry.cpp @@ -183,16 +183,11 @@ nsCacheEntry::Open(nsCacheRequest * request, nsICacheEntryDescriptor ** result) NS_ADDREF(*result = descriptor); - rv = descriptor->QueryInterface(NS_GET_IID(nsICacheEntryDescriptor), - (void**)result); - if (NS_SUCCEEDED(rv)) { // queue the descriptor PR_APPEND_LINK((descriptor)->GetListNode(), &mDescriptorQ); } - NS_RELEASE(descriptor); - } else if (rv == NS_ERROR_CACHE_WAIT_FOR_VALIDATION) { // queue request PR_APPEND_LINK(request->GetListNode(), &mRequestQ);