From d8772de6159e66d786013092282c61d690b119d5 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Fri, 19 Oct 2007 04:51:07 +0000 Subject: [PATCH] Destroy created pen after use (fixes a GDI object leak) svn path=/trunk/; revision=29671 --- reactos/dll/cpl/desk/monslctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/dll/cpl/desk/monslctl.c b/reactos/dll/cpl/desk/monslctl.c index 5a37c375d6a..32347f7dd74 100644 --- a/reactos/dll/cpl/desk/monslctl.c +++ b/reactos/dll/cpl/desk/monslctl.c @@ -922,6 +922,8 @@ MonSelPaint(IN OUT PMONITORSELWND infoPtr, hpOldFg); SelectObject(hDC, hbOldBk); + + DeleteObject(hpFg); } static VOID