From b8265505ae9bb3d04e0b2c1ff4f66a674d7a93dd Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Mon, 23 Jan 2006 12:59:30 +0000 Subject: [PATCH] fixed some resource leaks svn path=/trunk/; revision=21001 --- reactos/subsys/system/explorer/shell/mainframe.cpp | 1 + reactos/subsys/system/explorer/utility/window.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/reactos/subsys/system/explorer/shell/mainframe.cpp b/reactos/subsys/system/explorer/shell/mainframe.cpp index e2de0371b9d..e8d296bd61d 100644 --- a/reactos/subsys/system/explorer/shell/mainframe.cpp +++ b/reactos/subsys/system/explorer/shell/mainframe.cpp @@ -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;} diff --git a/reactos/subsys/system/explorer/utility/window.cpp b/reactos/subsys/system/explorer/utility/window.cpp index 1eb43bf8b61..3f6c598b0a8 100644 --- a/reactos/subsys/system/explorer/utility/window.cpp +++ b/reactos/subsys/system/explorer/utility/window.cpp @@ -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: