Removed manual ref/unref calls for Ptr<Node>
This commit is contained in:
1 parent
82d23c9bb7
commit
4731b38ffa
3 files changed
+5
-18
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user