release Ptrs in mesh-point-device
authorCraig Dowell <craigdo@ee.washington.edu>
Tue, 13 Oct 2009 12:51:46 -0700
changeset 5416 9800d5479341
parent 5415 5c2f96b507a9
child 5417 899604299046
release Ptrs in mesh-point-device
src/devices/mesh/mesh-point-device.cc
--- a/src/devices/mesh/mesh-point-device.cc	Tue Oct 13 10:23:21 2009 -0700
+++ b/src/devices/mesh/mesh-point-device.cc	Tue Oct 13 12:51:46 2009 -0700
@@ -59,6 +59,9 @@
 MeshPointDevice::~MeshPointDevice ()
 {
   NS_LOG_FUNCTION_NOARGS ();
+  m_node = 0;
+  m_channel = 0;
+  m_routingProtocol = 0;
 }
 
 void
@@ -70,7 +73,6 @@
       *iter = 0;
     }
   m_ifaces.clear ();
-  m_node = 0;
   NetDevice::DoDispose ();
 
 }