comctl32: Fix an hfont leak.
This commit is contained in:
parent
8a00bdddc0
commit
c7a9e3a1b2
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue