bug 2119: Fixing memory leaks in FdNetDevice test with DefaultSimulatorImpl due to non-executed events when simulation ends

This commit is contained in:
Alina Quereilhac
2015-08-04 22:45:54 +02:00
parent 8c21bdae76
commit 47d54736d4
3 changed files with 45 additions and 24 deletions

View File

@@ -84,6 +84,8 @@ void
DefaultSimulatorImpl::DoDispose (void)
{
NS_LOG_FUNCTION (this);
ProcessEventsWithContext ();
while (!m_events->IsEmpty ())
{
Scheduler::Event next = m_events->RemoveNext ();