Alistair Leslie-Hughes : msxml3: Fix memory leak in tests.
Alexandre Julliard
julliard at winehq.org
Fri Dec 14 07:39:43 CST 2007
Module: wine
Branch: master
Commit: 497c2949c709db76167b1515d9471629ad685d91
URL: http://source.winehq.org/git/wine.git/?a=commit;h=497c2949c709db76167b1515d9471629ad685d91
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Fri Dec 14 13:44:52 2007 +1100
msxml3: Fix memory leak in tests.
---
dlls/msxml3/tests/domdoc.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c
index 41208f2..8b4f546 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -415,7 +415,7 @@ static void test_domdoc( void )
ok ( r == E_INVALIDARG, "get_nodeName (NULL) wrong code\n");
/* content doesn't matter here */
- str = SysAllocString( szNonExistentFile );
+ str = NULL;
r = IXMLDOMDocument_get_nodeName( doc, &str );
ok ( r == S_OK, "get_nodeName wrong code\n");
ok ( str != NULL, "str is null\n");
@@ -670,7 +670,7 @@ todo_wine
ok ( r == E_INVALIDARG, "get_nodeName (NULL) wrong code\n");
/* content doesn't matter here */
- str = SysAllocString( szNonExistentFile );
+ str = NULL;
r = IXMLDOMNode_get_nodeName( node, &str );
ok ( r == S_OK, "get_nodeName wrong code\n");
ok ( str != NULL, "str is null\n");
More information about the wine-cvs
mailing list