changeset 496 | 894c8380d57b |
parent 487 | 04c5878c0a61 |
child 499 | 8a469663f7ea |
--- a/src/node/arp.cc Wed May 02 19:14:34 2007 +0200 +++ b/src/node/arp.cc Wed May 02 22:32:25 2007 +0200 @@ -44,11 +44,22 @@ Arp::~Arp () { + Dispose (); +} + +void +Arp::Dispose (void) +{ for (CacheList::const_iterator i = m_cacheList.begin (); i != m_cacheList.end (); i++) { delete *i; } - m_node->Unref (); + m_cacheList.clear (); + if (m_node != 0) + { + m_node->Unref (); + m_node = 0; + } } Arp *