Andrew Nguyen : msxml3/tests: Fix two minor leaks in test_mxwriter_properties().

Alexandre Julliard julliard at winehq.org
Fri Jul 15 11:45:21 CDT 2011


Module: wine
Branch: master
Commit: 2ed7a025f6dc908fd794fb7b894d7a74832be93c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2ed7a025f6dc908fd794fb7b894d7a74832be93c

Author: Andrew Nguyen <anguyen at codeweavers.com>
Date:   Fri Jul 15 07:38:20 2011 -0500

msxml3/tests: Fix two minor leaks in test_mxwriter_properties().

---

 dlls/msxml3/tests/saxreader.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/msxml3/tests/saxreader.c b/dlls/msxml3/tests/saxreader.c
index ec1c1ec..14c5e5a 100644
--- a/dlls/msxml3/tests/saxreader.c
+++ b/dlls/msxml3/tests/saxreader.c
@@ -1012,6 +1012,7 @@ static void test_mxwriter_properties(void)
     hr = IMXWriter_get_encoding(writer, &str);
     ok(hr == S_OK, "got %08x\n", hr);
     ok(lstrcmpW(str, utf16W) == 0, "expected empty string, got %s\n", wine_dbgstr_w(str));
+    SysFreeString(str);
 
     /* invalid encoding name */
     str = SysAllocString(testW);
@@ -1025,6 +1026,7 @@ static void test_mxwriter_properties(void)
     hr = IMXWriter_get_version(writer, &str);
     ok(hr == S_OK, "got %08x\n", hr);
     ok(!lstrcmpW(str, _bstr_("1.0")), "got %s\n", wine_dbgstr_w(str));
+    SysFreeString(str);
 
     IMXWriter_Release(writer);
     free_bstrs();




More information about the wine-cvs mailing list