[COMCTL32]
authorThomas Faber <thomas.faber@reactos.org>
Fri, 5 May 2017 19:23:04 +0000 (19:23 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Fri, 5 May 2017 19:23:04 +0000 (19:23 +0000)
- Fix heap memory leak in BUTTON_DrawTextCallback
CORE-13190

svn path=/trunk/; revision=74481

reactos/dll/win32/comctl32/button.c

index 687b217..506edd4 100644 (file)
@@ -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
 }