From 17a50f39b2765488388bce5a4c1a17783b6f8791 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 3 Jun 2015 23:21:42 +0300 Subject: [PATCH] riched20/tests: Fix a BSTR leak (Valgrind). --- dlls/riched20/tests/richole.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/riched20/tests/richole.c b/dlls/riched20/tests/richole.c index 101896e421e..da92e6cc6bd 100644 --- a/dlls/riched20/tests/richole.c +++ b/dlls/riched20/tests/richole.c @@ -2616,6 +2616,7 @@ static void test_SetText(void) str = SysAllocString(textW); hr = ITextRange_SetText(range, str); ok(hr == S_OK, "got 0x%08x\n", hr); + SysFreeString(str); value = 1; hr = ITextRange_GetStart(range, &value);