Piotr Caban : msvcp90: Destroy string returned by basic_stringbuf_char_str_get.

Alexandre Julliard julliard at winehq.org
Wed Nov 7 14:02:28 CST 2012


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

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Wed Nov  7 15:15:10 2012 +0100

msvcp90: Destroy string returned by basic_stringbuf_char_str_get.

---

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

diff --git a/dlls/msvcp90/tests/ios.c b/dlls/msvcp90/tests/ios.c
index 4370f0e..4875e85 100644
--- a/dlls/msvcp90/tests/ios.c
+++ b/dlls/msvcp90/tests/ios.c
@@ -1094,6 +1094,7 @@ static void test_num_put_put_double(void)
         str = call_func1(p_basic_string_char_cstr, &pstr);
 
         ok(!strcmp(tests[i].str, str), "wrong output, expected = %s found = %s\n", tests[i].str, str);
+        call_func1(p_basic_string_char_dtor, &pstr);
 
         if(tests[i].lcl)
             call_func1(p_locale_dtor, &lcl);
@@ -1120,6 +1121,7 @@ static void test_num_put_put_double(void)
 
         AtoW(wide, tests[i].str, strlen(tests[i].str));
         ok(!lstrcmpW(wide, wstr), "wrong output, expected = %s found = %s\n", tests[i].str, wine_dbgstr_w(wstr));
+        call_func1(p_basic_string_wchar_dtor, &pwstr);
 
         if(tests[i].lcl)
             call_func1(p_locale_dtor, &lcl);




More information about the wine-cvs mailing list