changeset 487 | 04c5878c0a61 |
parent 453 | ddbb935800d8 |
child 495 | a839408950b9 |
--- a/src/node/udp-socket.cc Wed May 02 14:28:07 2007 +0200 +++ b/src/node/udp-socket.cc Wed May 02 14:40:40 2007 +0200 @@ -35,14 +35,17 @@ 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; }