fixed some resource leaks
Modified: trunk/reactos/subsys/system/explorer/shell/mainframe.cpp
Modified: trunk/reactos/subsys/system/explorer/utility/window.cpp

Modified: trunk/reactos/subsys/system/explorer/shell/mainframe.cpp
--- trunk/reactos/subsys/system/explorer/shell/mainframe.cpp	2006-01-23 12:39:35 UTC (rev 21000)
+++ trunk/reactos/subsys/system/explorer/shell/mainframe.cpp	2006-01-23 12:59:30 UTC (rev 21001)
@@ -1433,6 +1433,7 @@
 			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;}
 

Modified: trunk/reactos/subsys/system/explorer/utility/window.cpp
--- trunk/reactos/subsys/system/explorer/utility/window.cpp	2006-01-23 12:39:35 UTC (rev 21000)
+++ trunk/reactos/subsys/system/explorer/utility/window.cpp	2006-01-23 12:59:30 UTC (rev 21001)
@@ -397,6 +397,7 @@
         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: