mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 09:50:07 +00:00
[CONSOLE]
Fix memory leaks svn path=/trunk/; revision=67805
This commit is contained in:
parent
ff88b914aa
commit
f1701931b0
|
@ -140,6 +140,7 @@ PaintText(LPDRAWITEMSTRUCT drawItem,
|
|||
if (Font == NULL)
|
||||
{
|
||||
DPRINT1("PaintText: CreateFont failed\n");
|
||||
DeleteObject(hBrush);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -147,6 +148,7 @@ PaintText(LPDRAWITEMSTRUCT drawItem,
|
|||
if (OldFont == NULL)
|
||||
{
|
||||
DeleteObject(Font);
|
||||
DeleteObject(hBrush);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue