mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 22:20:26 +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 New Issue
Block a user