msxml3: Prevent a memory leak if domdoc creation fails.

This commit is contained in:
Adam Martinson 2010-10-14 10:24:40 -05:00 committed by Alexandre Julliard
parent 7c47a9d192
commit 403201b87f
1 changed files with 2 additions and 0 deletions

View File

@ -2873,6 +2873,8 @@ HRESULT DOMDocument_create(const GUID *clsid, IUnknown *pUnkOuter, void **ppObj)
hr = DOMDocument_create_from_xmldoc(xmldoc, (IXMLDOMDocument3**)ppObj);
if(FAILED(hr))
{
free_properties(properties_from_xmlDocPtr(xmldoc));
heap_free(xmldoc->_private);
xmlFreeDoc(xmldoc);
return hr;
}