apply ref/unref rules consistently for Node
This commit is contained in:
1 parent
bd14f334e7
commit
d9daa0b63d
14 files changed
+51
-21
No files matched your search
@@ -35,14 +35,17 @@ UdpSocket::UdpSocket (Node *node)
|
||||
m_connected (false)
|
||||
{
|
||||
NS_ASSERT (GetUdp () != 0);
|
||||
m_node->Ref ();
|
||||
}
|
||||
UdpSocket::~UdpSocket ()
|
||||
{
|
||||
delete m_endPoint;
|
||||
m_node->Unref ();
|
||||
m_node = 0;
|
||||
}
|
||||
|
||||
Node *
|
||||
UdpSocket::GetNode (void) const
|
||||
UdpSocket::PeekNode (void) const
|
||||
{
|
||||
return m_node;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user