Commit 17bf0d91 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

msxml3: Corrected double free in test.

parent 2d0ff974
......@@ -2,7 +2,7 @@
* XML test
*
* Copyright 2005 Mike McCormack for CodeWeavers
* Copyright 2007 Alistair Leslie-Hughes
* Copyright 2007-2008 Alistair Leslie-Hughes
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -528,6 +528,7 @@ static void test_domdoc( void )
ok( r == E_INVALIDARG, "returns %08x\n", r );
r = IXMLDOMDocument_createTextNode(doc, str, &nodetext);
ok( r == S_OK, "returns %08x\n", r );
SysFreeString( str );
if(nodetext)
{
IXMLDOMNamedNodeMap *pAttribs;
......@@ -696,7 +697,6 @@ static void test_domdoc( void )
IXMLDOMText_Release( nodetext );
}
SysFreeString( str );
/* test Create Comment */
r = IXMLDOMDocument_createComment(doc, NULL, NULL);
......
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