mirror of
https://github.com/reactos/reactos.git
synced 2024-11-19 05:22:59 +00:00
fixed some resource leaks
svn path=/trunk/; revision=21001
This commit is contained in:
parent
732b734362
commit
b8265505ae
2 changed files with 2 additions and 0 deletions
|
@ -1433,6 +1433,7 @@ LRESULT SDIMainFrame::WndProc(UINT nmsg, WPARAM wparam, LPARAM lparam)
|
||||||
HBRUSH lastBrush = SelectBrush(canvas, GetStockBrush(COLOR_SPLITBAR));
|
HBRUSH lastBrush = SelectBrush(canvas, GetStockBrush(COLOR_SPLITBAR));
|
||||||
Rectangle(canvas, rt.left, rt.top-1, rt.right, rt.bottom+1);
|
Rectangle(canvas, rt.left, rt.top-1, rt.right, rt.bottom+1);
|
||||||
SelectObject(canvas, lastBrush);
|
SelectObject(canvas, lastBrush);
|
||||||
|
DeleteObject(lastBrush);
|
||||||
}
|
}
|
||||||
break;}
|
break;}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
SetRect(&rc, rt.left, rt.top-1, rt.right, rt.bottom+1);
|
||||||
DrawEdge(canvas, &rc, EDGE_RAISED, BF_RECT);
|
DrawEdge(canvas, &rc, EDGE_RAISED, BF_RECT);
|
||||||
SelectObject(canvas, lastBrush);
|
SelectObject(canvas, lastBrush);
|
||||||
|
DeleteObject(lastBrush);
|
||||||
break;}
|
break;}
|
||||||
|
|
||||||
case WM_SETCURSOR:
|
case WM_SETCURSOR:
|
||||||
|
|
Loading…
Reference in a new issue