wifi: Fix valgrind for wifi-devices-{dcf, edca} tests

This commit is contained in:
Stefano Avallone
2021-01-22 13:00:40 +01:00
parent 5ab9359b80
commit 95711be71b
2 changed files with 6 additions and 3 deletions

View File

@@ -437,13 +437,15 @@ public:
*/
Mac48Address MapDestAddressForAggregation (const WifiMacHeader &hdr);
protected:
// Overridden from Txop
void DoDispose (void);
private:
/// allow AggregationCapableTransmissionListener class access
friend class AggregationCapableTransmissionListener;
// Overridden from Txop
void DoDispose (void);
void DoInitialize (void);
void TerminateTxop (void);
uint32_t GetNextFragmentSize (void) const;

View File

@@ -426,7 +426,7 @@ void
TxopTest<TxopType>::DoDispose (void)
{
m_test = 0;
Txop::DoDispose ();
TxopType::DoDispose ();
}
template <typename TxopType>
@@ -620,7 +620,6 @@ void
ChannelAccessManagerTest<TxopType>::EndTest (void)
{
Simulator::Run ();
Simulator::Destroy ();
for (typename TxopTests::const_iterator i = m_txop.begin (); i != m_txop.end (); i++)
{
@@ -633,9 +632,11 @@ ChannelAccessManagerTest<TxopType>::EndTest (void)
}
m_txop.clear ();
m_ChannelAccessManager->Dispose ();
m_ChannelAccessManager = 0;
m_low = 0;
m_feManager = 0;
Simulator::Destroy ();
}
template <typename TxopType>