From f1701931b0c5869c9703a94843f4204fe5851036 Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sun, 17 May 2015 10:20:58 +0000 Subject: [PATCH] [CONSOLE] Fix memory leaks svn path=/trunk/; revision=67805 --- reactos/dll/cpl/console/layout.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/dll/cpl/console/layout.c b/reactos/dll/cpl/console/layout.c index b211b638ed6..dc7d62776fb 100644 --- a/reactos/dll/cpl/console/layout.c +++ b/reactos/dll/cpl/console/layout.c @@ -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; }