From c7a9e3a1b2e0bff6dfbcdffb5a5cacec1afdba98 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Tue, 11 May 2010 15:24:19 +0100 Subject: [PATCH] comctl32: Fix an hfont leak. --- dlls/comctl32/treeview.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index 8eb0c6db918..f1ff9c545ac 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);