projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6f1faa
)
[COMCTL32]
author
Thomas Faber
<thomas.faber@reactos.org>
Fri, 5 May 2017 19:23:04 +0000
(19:23 +0000)
committer
Thomas 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
patch
|
blob
|
history
diff --git
a/reactos/dll/win32/comctl32/button.c
b/reactos/dll/win32/comctl32/button.c
index
687b217
..
506edd4
100644
(file)
--- 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
}