#1 Memory leaks

closed-fixed
Asim Shankar
None
5
2003-01-12
2002-12-19
Jose Ramos
No

- Destructor of Layer (in layer.cpp), replace it by
the following
Layer::~Layer()
{
vector<Neuron *>::iterator it;
while (!_neurons.empty())
{
it = _neurons.begin();
delete *it;
it = _neurons.erase(it);
}
}
- Neuron::disconnect (in neuron.cpp), add 'delete
link' at the end of the function

Discussion

  • Asim Shankar
    Asim Shankar
    2003-01-11

    • assigned_to: nobody --> asimshankar
    • status: open --> pending
     
  • Asim Shankar
    Asim Shankar
    2003-01-12

    • status: pending --> closed-fixed
     
  • Asim Shankar
    Asim Shankar
    2003-01-12

    Logged In: YES
    user_id=470212

    Thanks for the info!
    Fixed in release 0.5.