Commit 9bccd06b authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

msxml3: Move potential NULL ptr derefs into their if () case.

parent 8e1e3e5c
...@@ -531,8 +531,8 @@ static void test_domdoc( void ) ...@@ -531,8 +531,8 @@ static void test_domdoc( void )
r = IXMLDOMText_get_attributes( nodetext, &pAttribs); r = IXMLDOMText_get_attributes( nodetext, &pAttribs);
ok(r == S_FALSE, "ret %08x\n", r ); ok(r == S_FALSE, "ret %08x\n", r );
ok( pAttribs == NULL, "pAttribs not NULL\n"); ok( pAttribs == NULL, "pAttribs not NULL\n");
IXMLDOMText_Release( nodetext );
} }
IXMLDOMText_Release( nodetext );
SysFreeString( str ); SysFreeString( str );
/* test Create Comment */ /* test Create Comment */
...@@ -550,8 +550,8 @@ static void test_domdoc( void ) ...@@ -550,8 +550,8 @@ static void test_domdoc( void )
r = IXMLDOMComment_get_lastChild(node_comment, &nodeChild); r = IXMLDOMComment_get_lastChild(node_comment, &nodeChild);
ok(r == S_FALSE, "ret %08x\n", r ); ok(r == S_FALSE, "ret %08x\n", r );
ok(nodeChild == NULL, "pLastChild not NULL\n"); ok(nodeChild == NULL, "pLastChild not NULL\n");
IXMLDOMText_Release( node_comment );
} }
IXMLDOMText_Release( node_comment );
/* test Create Attribute */ /* test Create Attribute */
r = IXMLDOMDocument_createAttribute(doc, NULL, NULL); r = IXMLDOMDocument_createAttribute(doc, NULL, NULL);
...@@ -582,8 +582,8 @@ static void test_domdoc( void ) ...@@ -582,8 +582,8 @@ static void test_domdoc( void )
r = IXMLDOMProcessingInstruction_get_lastChild(nodePI, &nodeChild); r = IXMLDOMProcessingInstruction_get_lastChild(nodePI, &nodeChild);
ok(r == S_FALSE, "ret %08x\n", r ); ok(r == S_FALSE, "ret %08x\n", r );
ok(nodeChild == NULL, "nodeChild not NULL\n"); ok(nodeChild == NULL, "nodeChild not NULL\n");
IXMLDOMProcessingInstruction_Release(nodePI);
} }
IXMLDOMProcessingInstruction_Release(nodePI);
r = IXMLDOMDocument_Release( doc ); r = IXMLDOMDocument_Release( doc );
ok( r == 0, "document ref count incorrect\n"); ok( r == 0, "document ref count incorrect\n");
......
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