Don't leak font objects

svn path=/trunk/; revision=39887
This commit is contained in:
Ged Murphy 2009-03-05 22:31:11 +00:00
parent ab3175b141
commit 953536f72d

View file

@ -814,6 +814,7 @@ static BOOL UITOOLS95_DFC_ButtonRadio(HDC dc, LPRECT r, UINT uFlags)
SetTextColor(dc, GetSysColor(COLOR_WINDOWTEXT));
SelectObject(dc, hOldFont);
DeleteObject(hFont);
return TRUE;
}
@ -1286,6 +1287,7 @@ static BOOL UITOOLS95_DrawFrameMenu(HDC dc, LPRECT r, UINT uFlags)
SetTextColor(dc, clrsave);
SelectObject(dc, hOldFont);
DeleteObject(hFont);
return retval;
}