src/devices/wifi/wifi-phy.cc
changeset 1992 5ff1101cb843
parent 1988 210701141b08
child 1999 9c279e6ebb20
--- a/src/devices/wifi/wifi-phy.cc	Wed Oct 17 16:26:42 2007 +0200
+++ b/src/devices/wifi/wifi-phy.cc	Wed Oct 17 17:01:51 2007 +0200
@@ -88,7 +88,9 @@
       m_refCount (1)
   {}
   ~RxEvent ()
-  {}
+  {
+    NS_ASSERT (m_refCount == 0);
+  }
   
   void Ref (void) const {
     m_refCount++;
@@ -277,7 +279,6 @@
     break;
   }
 
-  event->Unref ();
   return;
 
  maybeCcaBusy:
@@ -311,7 +312,6 @@
         }
     }
 
-  event->Unref ();
 }
 void 
 WifiPhy::SendPacket (Packet const packet, WifiMode txMode, WifiPreamble preamble, uint8_t txPower)
@@ -1173,7 +1173,6 @@
       SwitchFromSync ();
       m_syncErrorCallback (packet, snr);
     }
-  event->Unref ();
 }