apply ref/unref rules consistently for Node

This commit is contained in:
Mathieu Lacage committed 2007-05-02 14:40:40 +02:00
1 parent bd14f334e7
commit d9daa0b63d
14 files changed
+51 -21

No files matched your search

+4 -1
View File
@@ -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;
}