ensure m_listener is initialized properly

This commit is contained in:
Mathieu Lacage
2007-12-19 13:22:55 +01:00
parent f043a8789c
commit a6e289c8ef

View File

@@ -230,7 +230,8 @@ MacLow::MacLow ()
m_sendAckEvent (),
m_sendDataEvent (),
m_waitSifsEvent (),
m_currentPacket (0)
m_currentPacket (0),
m_listener (0)
{
m_lastNavDuration = Seconds (0);
m_lastNavStart = Seconds (0);
@@ -294,6 +295,7 @@ MacLow::CancelAllEvents (void)
if (oneRunning && m_listener != 0)
{
m_listener->Cancel ();
m_listener = 0;
}
}