implement properly the refcounting rules for the capability getters

This commit is contained in:
Mathieu Lacage committed 2007-05-02 23:42:22 +02:00
1 parent e5d10e4bf7
commit 77a1488dd2
13 files changed
+57 -27

No files matched your search

+3 -1
View File
@@ -47,7 +47,9 @@ Ipv4LoopbackInterface::DoCreateTraceResolver (TraceContext const &context)
void
Ipv4LoopbackInterface::SendTo (Packet packet, Ipv4Address dest)
{
m_node->GetIpv4 ()->Receive (packet, PeekDevice ());
Ipv4 *ipv4 = m_node->GetIpv4 ();
ipv4->Receive (packet, PeekDevice ());
ipv4->Unref ();
}
}//namespace ns3