bug 2119: Fixing memory leaks in FdNetDevice test with DefaultSimulatorImpl due to non-executed events when simulation ends
This commit is contained in:
@@ -84,6 +84,8 @@ void
|
||||
DefaultSimulatorImpl::DoDispose (void)
|
||||
{
|
||||
NS_LOG_FUNCTION (this);
|
||||
ProcessEventsWithContext ();
|
||||
|
||||
while (!m_events->IsEmpty ())
|
||||
{
|
||||
Scheduler::Event next = m_events->RemoveNext ();
|
||||
|
||||
Reference in New Issue
Block a user