Module: wine Branch: master Commit: c7a9e3a1b2e0bff6dfbcdffb5a5cacec1afdba98 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c7a9e3a1b2e0bff6dfbcdffb5a...
Author: Huw Davies huw@codeweavers.com Date: Tue May 11 15:24:19 2010 +0100
comctl32: Fix an hfont leak.
---
dlls/comctl32/treeview.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index 8eb0c6d..f1ff9c5 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -1884,6 +1884,7 @@ TREEVIEW_SetFont(TREEVIEW_INFO *infoPtr, HFONT hFont, BOOL bRedraw) infoPtr->hFont = hFont ? hFont : infoPtr->hDefaultFont;
DeleteObject(infoPtr->hBoldFont); + DeleteObject(infoPtr->hUnderlineFont); infoPtr->hBoldFont = TREEVIEW_CreateBoldFont(infoPtr->hFont); infoPtr->hUnderlineFont = TREEVIEW_CreateUnderlineFont(infoPtr->hFont);