Commit f9768f47 authored by Sander van Leeuwen's avatar Sander van Leeuwen Committed by Alexandre Julliard

Fixed font object leak in WM_SETFONT handler.

parent 6f31013f
......@@ -2093,6 +2093,8 @@ TOOLTIPS_SetFont (HWND hwnd, WPARAM wParam, LPARAM lParam)
if(!GetObjectW((HFONT)wParam, sizeof lf, &lf))
return 0;
if(infoPtr->hFont) DeleteObject (infoPtr->hFont);
infoPtr->hFont = CreateFontIndirectW(&lf);
if ((LOWORD(lParam)) & (infoPtr->nCurrentTool != -1)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment