From 35fecb20bcf8d59e461fdefaf0ffef485c57dafc Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Mon, 1 May 2017 12:44:24 +0000 Subject: [PATCH] [COMCTL32] -Rebar: Fix a region handle leak when themes are enabled. svn path=/trunk/; revision=74438 --- reactos/dll/win32/comctl32/rebar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/dll/win32/comctl32/rebar.c b/reactos/dll/win32/comctl32/rebar.c index 17069571654..4912b88264f 100644 --- a/reactos/dll/win32/comctl32/rebar.c +++ b/reactos/dll/win32/comctl32/rebar.c @@ -1974,8 +1974,8 @@ static LRESULT REBAR_EraseBkGnd (const REBAR_INFO *infoPtr, HDC hdc) HBRUSH hbrush = CreateSolidBrush(new); FillRgn(hdc, hrgn, hbrush); DeleteObject(hbrush); - DeleteObject(hrgn); } + DeleteObject(hrgn); #endif return TRUE; }