From ef84fa90a8ea655753df106092a3976a64383cdd Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Fri, 5 May 2017 19:23:04 +0000 Subject: [PATCH] [COMCTL32] - Fix heap memory leak in BUTTON_DrawTextCallback CORE-13190 svn path=/trunk/; revision=74481 --- reactos/dll/win32/comctl32/button.c | 1 + 1 file changed, 1 insertion(+) diff --git a/reactos/dll/win32/comctl32/button.c b/reactos/dll/win32/comctl32/button.c index 687b217e2cf..506edd401cb 100644 --- a/reactos/dll/win32/comctl32/button.c +++ b/reactos/dll/win32/comctl32/button.c @@ -1269,6 +1269,7 @@ static BOOL CALLBACK BUTTON_DrawTextCallback(HDC hdc, LPARAM lp, WPARAM wp, int } DrawTextW(hdc, text, -1, &rc, (UINT)wp); + HeapFree(GetProcessHeap(), 0, text); return TRUE; #endif }