From: Thomas Faber Date: Fri, 5 May 2017 19:23:04 +0000 (+0000) Subject: [COMCTL32] X-Git-Tag: ReactOS-0.4.6~759 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=ef84fa90a8ea655753df106092a3976a64383cdd [COMCTL32] - Fix heap memory leak in BUTTON_DrawTextCallback CORE-13190 svn path=/trunk/; revision=74481 --- 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 }