msxml: Fix a memory leak.

This commit is contained in:
Alistair Leslie-Hughes 2007-11-03 17:24:34 +11:00 committed by Alexandre Julliard
parent 597a77f7d6
commit 73e2ff5901
1 changed files with 3 additions and 0 deletions

View File

@ -356,6 +356,9 @@ static HRESULT WINAPI xmlelem_put_text(IXMLElement *iface, BSTR p)
content = xmlChar_from_wchar(p);
xmlNodeSetContent(This->node, content);
HeapFree( GetProcessHeap(), 0, content);
return S_OK;
}