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 }