mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Removed an extraneous QI from nsCacheEntry::Open()
This commit is contained in:
parent
bf273ef14c
commit
004b919287
5
netwerk/cache/src/nsCacheEntry.cpp
vendored
5
netwerk/cache/src/nsCacheEntry.cpp
vendored
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user