--- a/src/internet-stack/ipv4-l3-protocol.cc Thu Mar 19 11:33:19 2009 -0700
+++ b/src/internet-stack/ipv4-l3-protocol.cc Mon Mar 23 11:26:39 2009 -0700
@@ -152,15 +152,13 @@
NS_LOG_FUNCTION (this);
for (L4List_t::iterator i = m_protocols.begin(); i != m_protocols.end(); ++i)
{
- (*i)->Dispose ();
*i = 0;
}
m_protocols.clear ();
- for (Ipv4InterfaceList::const_iterator i = m_interfaces.begin (); i != m_interfaces.end (); ++i)
+ for (Ipv4InterfaceList::iterator i = m_interfaces.begin (); i != m_interfaces.end (); ++i)
{
- Ptr<Ipv4Interface> interface = *i;
- interface->Dispose ();
+ *i = 0;
}
m_interfaces.clear ();
m_node = 0;