Commit 306129c9 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

msxml3: Don't leak node in xmldoc_createElement in the wrong type was specified.

parent 76d0cab1
......@@ -449,11 +449,10 @@ static HRESULT WINAPI xmldoc_createElement(IXMLDocument *iface, VARIANT vType,
*ppElem = NULL;
node = xmlNewNode(NULL, empty);
if (V_VT(&vType) != VT_I4)
return E_INVALIDARG;
node = xmlNewNode(NULL, empty);
node->type = type_msxml_to_libxml(V_I4(&vType));
/* FIXME: create xmlNodePtr based on vType and var1 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment