diff options
author | Piotr Piastucki <leech.miranda@gmail.com> | 2015-05-18 12:12:04 +0000 |
---|---|---|
committer | Piotr Piastucki <leech.miranda@gmail.com> | 2015-05-18 12:12:04 +0000 |
commit | c8a1178505fe181733b68762b661adc76d07aa54 (patch) | |
tree | 153e3b0ff3afac90dceae80ba6e2b5009a64c03f /src | |
parent | 65293fe3106fa78417263122ad1b35ee19d4540d (diff) |
Neither brushes returned by WM_CTLCOLORDLG nor stock brushes need to be deleted (and cannot be as they are still in use)
git-svn-id: http://svn.miranda-ng.org/main/trunk@13678 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/button/button.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/button/button.cpp b/src/modules/button/button.cpp index 0df5c21806..483c85b0b4 100644 --- a/src/modules/button/button.cpp +++ b/src/modules/button/button.cpp @@ -129,10 +129,8 @@ static void PaintWorker(MButtonCtrl *ctl, HDC hdcPaint) SelectObject(dc, oldBrush);
ReleaseDC(hwndParent, dc);
}
- if (hbr) {
+ if (hbr)
FillRect(hdcMem, &rcClient, hbr);
- DeleteObject(hbr);
- }
if (ctl->stateId == PBS_HOT || ctl->focus) {
if (ctl->bIsPushed)
DrawEdge(hdcMem, &rcClient, EDGE_ETCHED, BF_RECT|BF_SOFT);
|