Removed manual ref/unref calls for Ptr<Node>

This commit is contained in:
Raj Bhattacharjea committed 2007-05-09 14:50:14 -04:00
1 parent 82d23c9bb7
commit 4731b38ffa
3 files changed
+5 -18

No files matched your search

-2
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;
}