Author: gadamopoulos
Date: Mon May 1 12:44:24 2017
New Revision: 74438
URL:
http://svn.reactos.org/svn/reactos?rev=74438&view=rev
Log:
[COMCTL32] -Rebar: Fix a region handle leak when themes are enabled.
Modified:
trunk/reactos/dll/win32/comctl32/rebar.c
Modified: trunk/reactos/dll/win32/comctl32/rebar.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/comctl32/rebar.c…
==============================================================================
--- trunk/reactos/dll/win32/comctl32/rebar.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/comctl32/rebar.c [iso-8859-1] Mon May 1 12:44:24 2017
@@ -1974,8 +1974,8 @@
HBRUSH hbrush = CreateSolidBrush(new);
FillRgn(hdc, hrgn, hbrush);
DeleteObject(hbrush);
- DeleteObject(hrgn);
- }
+ }
+ DeleteObject(hrgn);
#endif
return TRUE;
}