comdlg32: Fix memory leak in colour dialog.
This commit is contained in:
parent
a8b0a5ea91
commit
c8b626fa1d
|
@ -443,6 +443,7 @@ void CC_PaintSelectedColor( HWND hDlg, COLORREF cr )
|
|||
{
|
||||
FillRect(hdc, &rect, hBrush);
|
||||
DrawEdge(hdc, &rect, BDR_SUNKENOUTER, BF_RECT);
|
||||
DeleteObject(hBrush);
|
||||
}
|
||||
ReleaseDC(hwnd, hdc);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue