msxml3: Don't leak node in xmldoc_createElement in the wrong type was specified.
This commit is contained in:
parent
76d0cab17d
commit
306129c92e
@ -449,11 +449,10 @@ static HRESULT WINAPI xmldoc_createElement(IXMLDocument *iface, VARIANT vType,
|
|||||||
|
|
||||||
*ppElem = NULL;
|
*ppElem = NULL;
|
||||||
|
|
||||||
node = xmlNewNode(NULL, empty);
|
|
||||||
|
|
||||||
if (V_VT(&vType) != VT_I4)
|
if (V_VT(&vType) != VT_I4)
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
|
|
||||||
|
node = xmlNewNode(NULL, empty);
|
||||||
node->type = type_msxml_to_libxml(V_I4(&vType));
|
node->type = type_msxml_to_libxml(V_I4(&vType));
|
||||||
|
|
||||||
/* FIXME: create xmlNodePtr based on vType and var1 */
|
/* FIXME: create xmlNodePtr based on vType and var1 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user