call dispose from within the destructor
This commit is contained in:
1 parent
d4814abf5f
commit
6e03b80cd0
1 file changed
+1
-5
@@ -56,11 +56,7 @@ PointToPointNetDevice::~PointToPointNetDevice()
|
||||
{
|
||||
NS_DEBUG ("PointToPointNetDevice::~PointToPointNetDevice ()");
|
||||
|
||||
if (m_channel)
|
||||
{
|
||||
m_channel->Unref ();
|
||||
m_channel = 0;
|
||||
}
|
||||
Dispose ();
|
||||
|
||||
delete m_queue;
|
||||
m_queue = 0;
|
||||
|
||||
Reference in new issue
Block a user