mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:30:50 +00:00
msxml3: Prevent a memory leak if domdoc creation fails.
This commit is contained in:
parent
7c47a9d192
commit
403201b87f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue