mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 12:45:16 +00:00
Don't leak font objects
svn path=/trunk/; revision=39887
This commit is contained in:
parent
ab3175b141
commit
953536f72d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue