Alistair Leslie-Hughes : msxml3: Corrected double free in test.
Alexandre Julliard
julliard at winehq.org
Tue Mar 11 10:51:48 CDT 2008
Module: wine
Branch: master
Commit: 17bf0d916439d310471b22ad0ca1e8b5e1afce4d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=17bf0d916439d310471b22ad0ca1e8b5e1afce4d
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Tue Mar 11 19:33:06 2008 +1100
msxml3: Corrected double free in test.
---
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 5d7fc0c..c4c5b9c 100644
--- a/dlls/msxml3/tests/domdoc.c
+++ b/dlls/msxml3/tests/domdoc.c
@@ -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);
More information about the wine-cvs
mailing list