diff --git a/src/devices/mesh/mesh-point-device.cc b/src/devices/mesh/mesh-point-device.cc index 5c4dba64f..e25bc60b5 100644 --- a/src/devices/mesh/mesh-point-device.cc +++ b/src/devices/mesh/mesh-point-device.cc @@ -59,6 +59,9 @@ MeshPointDevice::MeshPointDevice () : MeshPointDevice::~MeshPointDevice () { NS_LOG_FUNCTION_NOARGS (); + m_node = 0; + m_channel = 0; + m_routingProtocol = 0; } void @@ -70,7 +73,6 @@ MeshPointDevice::DoDispose () *iter = 0; } m_ifaces.clear (); - m_node = 0; NetDevice::DoDispose (); }