fixed some resource leaks

svn path=/trunk/; revision=21001
This commit is contained in:
Christoph von Wittich 2006-01-23 12:59:30 +00:00
parent 732b734362
commit b8265505ae
2 changed files with 2 additions and 0 deletions

View file

@ -1433,6 +1433,7 @@ LRESULT SDIMainFrame::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
HBRUSH lastBrush = SelectBrush(canvas, GetStockBrush(COLOR_SPLITBAR));
Rectangle(canvas, rt.left, rt.top-1, rt.right, rt.bottom+1);
SelectObject(canvas, lastBrush);
DeleteObject(lastBrush);
}
break;}

View file

@ -397,6 +397,7 @@ LRESULT ChildWindow::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
SetRect(&rc, rt.left, rt.top-1, rt.right, rt.bottom+1);
DrawEdge(canvas, &rc, EDGE_RAISED, BF_RECT);
SelectObject(canvas, lastBrush);
DeleteObject(lastBrush);
break;}
case WM_SETCURSOR: