comctl32: Fix an hfont leak.

This commit is contained in:
Huw Davies 2010-05-11 15:24:19 +01:00 committed by Alexandre Julliard
parent 8a00bdddc0
commit c7a9e3a1b2
1 changed files with 1 additions and 0 deletions

View File

@ -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);