riched20/tests: Fix a memory leak (Valgrind).

Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Sven Baars 2019-01-16 14:08:31 +01:00 committed by Alexandre Julliard
parent 0b3e7115de
commit 9d79aa686b
1 changed files with 2 additions and 0 deletions

View File

@ -705,6 +705,8 @@ static void test_TxSetText(void)
ok(memcmp(rettext,settext,SysStringByteLen(rettext)) == 0,
"String returned differs\n");
SysFreeString(rettext);
/* Null-pointer should behave the same as empty-string */
hres = ITextServices_TxSetText(txtserv, 0);