Author: pschweitzer
Date: Sun May 17 10:20:58 2015
New Revision: 67805
URL:
http://svn.reactos.org/svn/reactos?rev=67805&view=rev
Log:
[CONSOLE]
Fix memory leaks
Modified:
trunk/reactos/dll/cpl/console/layout.c
Modified: trunk/reactos/dll/cpl/console/layout.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/console/layout.c?r…
==============================================================================
--- trunk/reactos/dll/cpl/console/layout.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/console/layout.c [iso-8859-1] Sun May 17 10:20:58 2015
@@ -140,6 +140,7 @@
if (Font == NULL)
{
DPRINT1("PaintText: CreateFont failed\n");
+ DeleteObject(hBrush);
return FALSE;
}
@@ -147,6 +148,7 @@
if (OldFont == NULL)
{
DeleteObject(Font);
+ DeleteObject(hBrush);
return FALSE;
}