Bug 614724 followup. Fix crash due to silly assumptions about order of argument evaluation. a=orange

This commit is contained in:
Boris Zbarsky 2010-11-30 13:59:42 -05:00
Родитель 4680bdd42c
Коммит 3fefd9af5d
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -4371,7 +4371,7 @@ nsDocument::CreateElementNS(const nsAString& aNamespaceURI,
NS_ENSURE_SUCCESS(rv, rv);
PRInt32 ns = nodeInfo->NamespaceID();
return NS_NewElement(aReturn, nodeInfo->NamespaceID(),
return NS_NewElement(aReturn, ns,
nodeInfo.forget(), NOT_FROM_PARSER);
}