fix memory leaks for simple sample code
This commit is contained in:
1 parent
5b05f21261
commit
12cf66da2b
4 files changed
+27
-3
No files matched your search
@@ -35,6 +35,14 @@ Arp::Arp (Node *node)
|
||||
: m_node (node)
|
||||
{}
|
||||
|
||||
Arp::~Arp ()
|
||||
{
|
||||
for (CacheList::const_iterator i = m_cacheList.begin (); i != m_cacheList.end (); i++)
|
||||
{
|
||||
delete *i;
|
||||
}
|
||||
}
|
||||
|
||||
Arp *
|
||||
Arp::Copy (Node *node)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user