зеркало из https://github.com/mozilla/gecko-dev.git
bug 338541 don't always return null from GetCurrentNode (plus, don't leak the
current node) patch by Alex Vincent <ajvincent@gmail.com> r=bryner sr=neil a=darin
This commit is contained in:
Родитель
ff9384d16f
Коммит
de0973f23a
|
@ -161,7 +161,7 @@ nsTreeWalker::GetExpandEntityReferences(PRBool *aExpandEntityReferences)
|
|||
NS_IMETHODIMP nsTreeWalker::GetCurrentNode(nsIDOMNode * *aCurrentNode)
|
||||
{
|
||||
if (mCurrentNode) {
|
||||
CallQueryInterface(mCurrentNode, aCurrentNode);
|
||||
return CallQueryInterface(mCurrentNode, aCurrentNode);
|
||||
}
|
||||
|
||||
*aCurrentNode = nsnull;
|
||||
|
|
Загрузка…
Ссылка в новой задаче