[ros-diffs] [mf] 21012: explorer: fix small memory leak

mf at svn.reactos.org mf at svn.reactos.org
Tue Jan 24 21:27:19 CET 2006


explorer: fix small memory leak
Modified: trunk/reactos/subsys/system/explorer/shell/entries.cpp
  _____  

Modified: trunk/reactos/subsys/system/explorer/shell/entries.cpp
--- trunk/reactos/subsys/system/explorer/shell/entries.cpp
2006-01-24 20:05:50 UTC (rev 21011)
+++ trunk/reactos/subsys/system/explorer/shell/entries.cpp
2006-01-24 20:27:05 UTC (rev 21012)
@@ -163,8 +163,10 @@

 
 Root::~Root()
 {
-	if (_entry)
+	if (_entry) {
 		_entry->free_subentries();
+		delete _entry;
+	}
 }
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20060124/830e6633/attachment.html


More information about the Ros-diffs mailing list