diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index e669de4d15..f7f57ac209 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -2235,10 +2235,9 @@ static void test_domnode( void ) ok( tag != NULL, "tag was null\n"); ok( !lstrcmpW( tag, szSSearch ), "incorrect tag name\n"); SysFreeString( tag ); - } - if (element) IXMLDOMElement_Release( element ); + } ok(IXMLDOMDocument_Release( doc ) == 0, "document is not destroyed\n"); free_bstrs();