Commit c8b626fa authored by Divan Burger's avatar Divan Burger Committed by Alexandre Julliard

comdlg32: Fix memory leak in colour dialog.

parent a8b0a5ea
...@@ -443,6 +443,7 @@ void CC_PaintSelectedColor( HWND hDlg, COLORREF cr ) ...@@ -443,6 +443,7 @@ void CC_PaintSelectedColor( HWND hDlg, COLORREF cr )
{ {
FillRect(hdc, &rect, hBrush); FillRect(hdc, &rect, hBrush);
DrawEdge(hdc, &rect, BDR_SUNKENOUTER, BF_RECT); DrawEdge(hdc, &rect, BDR_SUNKENOUTER, BF_RECT);
DeleteObject(hBrush);
} }
ReleaseDC(hwnd, hdc); ReleaseDC(hwnd, hdc);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment