fix valgrind issue with lte-bearer test

This commit is contained in:
Tom Henderson
2010-12-21 16:13:14 -08:00
parent 26ad3245ad
commit 23cba49ee7
2 changed files with 5 additions and 1 deletions

View File

@@ -99,6 +99,7 @@ LteMacQueue::LteMacQueue (uint32_t maxSize)
LteMacQueue::~LteMacQueue (void)
{
m_queue.clear ();
}

View File

@@ -102,7 +102,10 @@ Ns3LteBearerTestCase::DoRun (void)
return true; // the queue should be empty
}
// Free memory; handle reference cycle that bearer has with RlcEntity
bearer->Dispose ();
bearer = 0;
Simulator::Destroy ();
return (testResult);
}