[ros-diffs] [cwittich] 21001: fixed some resource leaks

cwittich at svn.reactos.org cwittich at svn.reactos.org
Mon Jan 23 13:59:51 CET 2006


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:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20060123/49f70284/attachment.html


More information about the Ros-diffs mailing list