msxml3: Fix node interface leak after nextNode().

This commit is contained in:
Nikolay Sivov 2012-06-30 17:48:44 +04:00 committed by Alexandre Julliard
parent 60dd1c6a6e
commit f139a88fd5
1 changed files with 4 additions and 0 deletions

View File

@ -513,7 +513,11 @@ static HRESULT WINAPI enumvariant_Next(
/* we need to advance one step more for some reason */
if (ret_count)
{
node = NULL;
IXMLDOMSelection_nextNode(This->selection, &node);
if (node) IXMLDOMNode_Release(node);
}
return celt == 0 ? S_OK : S_FALSE;
}