comdlg32: Fix memory leak in colour dialog.

This commit is contained in:
Divan Burger 2008-02-13 17:19:24 +02:00 committed by Alexandre Julliard
parent a8b0a5ea91
commit c8b626fa1d
1 changed files with 1 additions and 0 deletions

View File

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