Module: wine Branch: stable Commit: 6784577606cd284f4e366cc91640321fa881bee4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6784577606cd284f4e366cc916...
Author: Sebastian Lackner sebastian@fds-team.de Date: Fri May 20 08:04:21 2016 +0300
comctl32/syslink: Fix a blocks leak (Valgrind).
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org (cherry picked from commit f4640b04925e0044f6e32bb7d48c85117052a599) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
dlls/comctl32/syslink.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/dlls/comctl32/syslink.c b/dlls/comctl32/syslink.c index 233169c..5e0f791 100644 --- a/dlls/comctl32/syslink.c +++ b/dlls/comctl32/syslink.c @@ -122,6 +122,8 @@ static VOID SYSLINK_FreeDocItem (PDOC_ITEM DocItem) Free(DocItem->u.Link.szUrl); }
+ Free(DocItem->Blocks); + /* we don't free Text because it's just a pointer to a character in the entire window text string */