manage NetDevice objects with refcounts

This commit is contained in:
Mathieu Lacage committed 2007-05-02 10:25:06 +02:00
1 parent 3a5cc38cea
commit 9a3b39648a
14 files changed
+54 -39

No files matched your search

+1
View File
@@ -72,6 +72,7 @@ Node::SetSystemId(uint32_t s )
uint32_t
Node::AddDevice (NetDevice *device)
{
device->Ref ();
uint32_t index = m_devices.size ();
m_devices.push_back (device);
DoAddDevice (device);