[CONSOLE]

Fix memory leaks

svn path=/trunk/; revision=67805
This commit is contained in:
Pierre Schweitzer 2015-05-17 10:20:58 +00:00
parent ff88b914aa
commit f1701931b0

View file

@ -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;
}