call dispose from within the destructor
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 02 May 2007 09:18:18 +0200
changeset 471 c2f541e6376a
parent 470 0d09991d3511
child 472 41aa5fca4f49
call dispose from within the destructor
src/devices/p2p/p2p-net-device.cc
--- a/src/devices/p2p/p2p-net-device.cc	Wed May 02 09:18:02 2007 +0200
+++ b/src/devices/p2p/p2p-net-device.cc	Wed May 02 09:18:18 2007 +0200
@@ -56,11 +56,7 @@
 {
   NS_DEBUG ("PointToPointNetDevice::~PointToPointNetDevice ()");
 
-  if (m_channel)
-    {
-      m_channel->Unref ();
-      m_channel = 0;
-    }
+  Dispose ();
 
   delete m_queue;
   m_queue = 0;