зеркало из https://github.com/mozilla/pjs.git
use NS_LITERAL_STRING instead of NS_LITERAL_CSTRING when creating an atom, and put dont_AddRef() around NS_NewAtom so we don't add an extra addref
This commit is contained in:
Родитель
4de86fb39c
Коммит
f30ed40220
|
@ -466,7 +466,7 @@ NS_IMETHODIMP imgRequest::OnStartRequest(nsIRequest *aRequest, nsISupports *ctxt
|
|||
}
|
||||
|
||||
/* get the http expires date */
|
||||
nsCOMPtr<nsIAtom> expiresAtom(NS_NewAtom(NS_LITERAL_CSTRING("Expires")));
|
||||
nsCOMPtr<nsIAtom> expiresAtom(dont_AddRef(NS_NewAtom(NS_LITERAL_STRING("Expires"))));
|
||||
nsXPIDLCString expires;
|
||||
httpChannel->GetResponseHeader(expiresAtom, getter_Copies(expires));
|
||||
if (expires.get()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче