msxml: fix a test

Huw D M Davies h.davies1 at physics.ox.ac.uk
Tue Nov 22 10:50:44 CST 2005


        Huw Davies <huw at codeweavers.com>
        Release a stray node.
-- 
Huw Davies
huw at codeweavers.com
Index: dlls/msxml3/tests/domdoc.c
===================================================================
RCS file: /home/wine/wine/dlls/msxml3/tests/domdoc.c,v
retrieving revision 1.12
diff -u -p -r1.12 domdoc.c
--- dlls/msxml3/tests/domdoc.c	18 Nov 2005 15:05:26 -0000	1.12
+++ dlls/msxml3/tests/domdoc.c	22 Nov 2005 16:48:52 -0000
@@ -168,7 +168,7 @@ void test_domdoc( void )
     SysFreeString( str );
 
 
-    /* check that there's no document element */
+    /* check that there's a document element */
     element = NULL;
     r = IXMLDOMDocument_get_documentElement( doc, &element );
     ok( r == S_OK, "should be a document element\n");
@@ -335,6 +335,7 @@ void test_domnode( void )
         r = IXMLDOMNamedNodeMap_getNamedItem( map, str, &node );
         ok( r == S_OK, "getNamedItem returned wrong code\n");
         ok( node != NULL, "should be attributes\n");
+        IXMLDOMNode_Release(node);
         SysFreeString( str );
 
 	/* test indexed access of attributes */



More information about the wine-patches mailing list