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>
This commit is contained in:
parent
0b3e7115de
commit
9d79aa686b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue