[COMCTL32] -Rebar: Fix a region handle leak when themes are enabled.

svn path=/trunk/; revision=74438
This commit is contained in:
Giannis Adamopoulos 2017-05-01 12:44:24 +00:00
parent f23a970e84
commit 35fecb20bc

View file

@ -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;
}