View | Details | Raw Unified | Return to bug 711
Collapse All | Expand All

(-)a/src/devices/mesh/dot11s/hwmp-protocol.cc (+5 lines)
 Lines 202-211    Link Here 
202
    {
202
    {
203
      i->second.Cancel ();
203
      i->second.Cancel ();
204
    }
204
    }
205
  for (HwmpProtocolMacMap::iterator i = m_interfaces.begin (); i != m_interfaces.end (); i ++)
206
    {
207
      i->second = 0;
208
    }
205
  m_proactivePreqTimer.Cancel();
209
  m_proactivePreqTimer.Cancel();
206
  m_preqTimeouts.clear ();
210
  m_preqTimeouts.clear ();
207
  m_lastDataSeqno.clear ();
211
  m_lastDataSeqno.clear ();
208
  m_lastHwmpSeqno.clear ();
212
  m_lastHwmpSeqno.clear ();
213
  m_interfaces.clear ();
209
  m_rqueue.clear ();
214
  m_rqueue.clear ();
210
  m_rtable = 0;
215
  m_rtable = 0;
211
}
216
}
(-)a/src/devices/mesh/dot11s/ie-dot11s-beacon-timing.cc (-8 lines)
 Lines 118-136    Link Here 
118
void
118
void
119
IeBeaconTiming::ClearTimingElement ()
119
IeBeaconTiming::ClearTimingElement ()
120
{
120
{
121
  uint16_t to_delete = 0;
122
  uint16_t i;
123
  for (NeighboursTimingUnitsList::iterator j = m_neighbours.begin (); j != m_neighbours.end (); j++)
121
  for (NeighboursTimingUnitsList::iterator j = m_neighbours.begin (); j != m_neighbours.end (); j++)
124
    {
122
    {
125
      to_delete++;
126
      (*j) = 0;
123
      (*j) = 0;
127
    }
124
    }
128
  for (i = 0; i < to_delete; i++)
129
    {
130
      m_neighbours.pop_back ();
131
    }
132
  m_neighbours.clear ();
125
  m_neighbours.clear ();
133
134
}
126
}
135
uint8_t
127
uint8_t
136
IeBeaconTiming::GetInformationSize () const
128
IeBeaconTiming::GetInformationSize () const
(-)a/src/devices/mesh/dot11s/ie-dot11s-preq.cc (-5 lines)
 Lines 373-388    Link Here 
373
void
373
void
374
IePreq::ClearDestinationAddressElements ()
374
IePreq::ClearDestinationAddressElements ()
375
{
375
{
376
  int i;
377
  for (std::vector<Ptr<DestinationAddressUnit> >::iterator j = m_destinations.begin (); j
376
  for (std::vector<Ptr<DestinationAddressUnit> >::iterator j = m_destinations.begin (); j
378
      != m_destinations.end (); j++)
377
      != m_destinations.end (); j++)
379
    {
378
    {
380
      (*j) = 0;
379
      (*j) = 0;
381
    }
380
    }
382
  for (i = 0; i < m_destCount; i++)
383
    {
384
      m_destinations.pop_back ();
385
    }
386
  m_destinations.clear ();
381
  m_destinations.clear ();
387
  m_destCount = 0;
382
  m_destCount = 0;
388
}
383
}
(-)a/src/devices/mesh/dot11s/peer-management-protocol.cc (+6 lines)
 Lines 93-98    Link Here 
93
      i->second.clear ();
93
      i->second.clear ();
94
    }
94
    }
95
  m_neighbourBeacons.clear ();
95
  m_neighbourBeacons.clear ();
96
97
  for (PeerManagementProtocolMacMap::iterator i = m_plugins.begin (); i != m_plugins.end (); i++)
98
    {
99
      i->second = 0;
100
    }
101
  m_plugins.clear ();
96
}
102
}
97
103
98
bool
104
bool
(-)a/src/devices/mesh/mesh-wifi-beacon.h (-2 lines)
 Lines 27-34    Link Here 
27
#include "ns3/wifi-mac-header.h"
27
#include "ns3/wifi-mac-header.h"
28
#include "ns3/wifi-information-element-vector.h"
28
#include "ns3/wifi-information-element-vector.h"
29
29
30
#include <vector>
31
32
namespace ns3 {
30
namespace ns3 {
33
31
34
/**
32
/**
(-)a/src/devices/mesh/mesh-wifi-interface-mac.cc (+10 lines)
 Lines 278-289    Link Here 
278
  NS_LOG_FUNCTION (this);
278
  NS_LOG_FUNCTION (this);
279
  delete m_rxMiddle;
279
  delete m_rxMiddle;
280
  delete m_dcfManager;
280
  delete m_dcfManager;
281
  for (PluginList::iterator i = m_plugins.begin (); i != m_plugins.end (); i++)
282
    {
283
      *i = 0;
284
    }
285
  for (Queues::iterator i = m_queues.begin (); i != m_queues.end (); i++)
286
    {
287
      i->second = 0;
288
    }
281
  //Delete smart pointers:
289
  //Delete smart pointers:
282
  m_rxMiddle = 0;
290
  m_rxMiddle = 0;
283
  m_low = 0;
291
  m_low = 0;
284
  m_dcfManager = 0;
292
  m_dcfManager = 0;
293
  m_stationManager = 0;
285
  m_phy = 0;
294
  m_phy = 0;
286
  m_queues.clear ();
295
  m_queues.clear ();
296
  m_plugins.clear ();
287
  m_beaconSendEvent.Cancel ();
297
  m_beaconSendEvent.Cancel ();
288
  m_beaconDca = 0;
298
  m_beaconDca = 0;
289
299
(-)a/src/devices/mesh/wifi-information-element-vector.cc (-1 / +1 lines)
 Lines 74-80    Link Here 
74
void
74
void
75
WifiInformationElementVector::Serialize (Buffer::Iterator start) const
75
WifiInformationElementVector::Serialize (Buffer::Iterator start) const
76
{
76
{
77
  for(std::vector<Ptr<WifiInformationElement> >::const_iterator i = m_elements.begin (); i != m_elements.end (); i ++)
77
  for(IE_VECTOR::const_iterator i = m_elements.begin (); i != m_elements.end (); i ++)
78
    {
78
    {
79
      start.WriteU8((*i)->ElementId ());
79
      start.WriteU8((*i)->ElementId ());
80
      start.WriteU8 ((*i)->GetInformationSize ());
80
      start.WriteU8 ((*i)->GetInformationSize ());
(-)a/src/helper/net-device-container.cc (+7 lines)
 Lines 39-44    Link Here 
39
  *this = a;
39
  *this = a;
40
  Add (b);
40
  Add (b);
41
}
41
}
42
NetDeviceContainer::~NetDeviceContainer ()
43
{
44
  for (std::vector<Ptr<NetDevice> >::iterator i = m_devices.begin (); i != m_devices.end (); i++)
45
    {
46
      *i = 0;
47
    }
48
}
42
49
43
50
44
NetDeviceContainer::Iterator 
51
NetDeviceContainer::Iterator 
(-)a/src/helper/net-device-container.h (+5 lines)
 Lines 85-90    Link Here 
85
  NetDeviceContainer (const NetDeviceContainer &a, const NetDeviceContainer &b);
85
  NetDeviceContainer (const NetDeviceContainer &a, const NetDeviceContainer &b);
86
86
87
  /**
87
  /**
88
   * Destroy a NetDeviceContainer
89
   */
90
  ~NetDeviceContainer ();
91
92
  /**
88
   * \brief Get an iterator which refers to the first NetDevice in the 
93
   * \brief Get an iterator which refers to the first NetDevice in the 
89
   * container.
94
   * container.
90
   *
95
   *
(-)a/src/helper/node-container.cc (+8 lines)
 Lines 67-72    Link Here 
67
  Add (e);
67
  Add (e);
68
}
68
}
69
69
70
NodeContainer::~NodeContainer ()
71
{
72
  for (std::vector<Ptr<Node> >::iterator i = m_nodes.begin (); i != m_nodes.end (); i++)
73
    {
74
      *i = 0;
75
    }
76
}
77
70
NodeContainer::Iterator 
78
NodeContainer::Iterator 
71
NodeContainer::Begin (void) const
79
NodeContainer::Begin (void) const
72
{
80
{
(-)a/src/helper/node-container.h (+5 lines)
 Lines 138-143    Link Here 
138
                 const NodeContainer &e);
138
                 const NodeContainer &e);
139
139
140
  /**
140
  /**
141
   * Destroy a NodeContainer
142
   */
143
  ~NodeContainer ();
144
145
  /**
141
   * \brief Get an iterator which refers to the first Node in the 
146
   * \brief Get an iterator which refers to the first Node in the 
142
   * container.
147
   * container.
143
   *
148
   *

Return to bug 711