зеркало из https://github.com/mozilla/pjs.git
Fix small, localized leak of HTTP atoms. Well tested on MacOS and under Purify with no ill effects. r=gagan
This commit is contained in:
Родитель
aeb63a9a96
Коммит
68ece40583
|
@ -368,7 +368,7 @@ nsresult nsHTTPResponse::ParseHeader(nsCString& aHeaderString)
|
|||
aHeaderString.Cut(0, colonOffset+1);
|
||||
aHeaderString.Trim(" ");
|
||||
|
||||
headerAtom = NS_NewAtom(headerKey.GetBuffer());
|
||||
headerAtom = getter_AddRefs(NS_NewAtom(headerKey.GetBuffer()));
|
||||
if (headerAtom) {
|
||||
rv = ProcessHeader(headerAtom, aHeaderString);
|
||||
} else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче