Removed manual ref/unref calls for Ptr<Node>

This commit is contained in:
Raj Bhattacharjea
2007-05-09 14:50:14 -04:00
parent ecfcfa977d
commit de3b9c78f3
3 changed files with 5 additions and 18 deletions

View File

@@ -40,12 +40,10 @@ NetDevice::NetDevice(Ptr<Node> node, const MacAddress& addr) :
m_isMulticast (false),
m_isPointToPoint (false)
{
m_node->Ref ();
}
NetDevice::~NetDevice ()
{
m_node->Unref ();
m_node = 0;
}