msxml3: Fix memory leaks in node.c.

This commit is contained in:
Michael Karcher 2008-10-11 23:58:59 +02:00 committed by Alexandre Julliard
parent f5ac0f3277
commit 19d635f9a3
1 changed files with 7 additions and 0 deletions

View File

@ -1303,8 +1303,13 @@ static HRESULT WINAPI xmlnode_transformNode(
}
}
}
xmlFreeDoc(result);
}
/* libxslt "helpfully" frees the XML document the stylesheet was
generated from, too */
xsltSS->doc = NULL;
xsltFreeStylesheet(xsltSS);
IXMLDOMNode_Release(ssNew);
}
@ -1379,6 +1384,7 @@ static HRESULT WINAPI xmlnode_get_namespaceURI(
{
*namespaceURI = bstr_from_xmlChar( pNSList[0]->href );
xmlFree( pNSList );
hr = S_OK;
}
@ -1405,6 +1411,7 @@ static HRESULT WINAPI xmlnode_get_prefix(
{
*prefixString = bstr_from_xmlChar( pNSList[0]->prefix );
xmlFree(pNSList);
hr = S_OK;
}