Ignore:
Timestamp:
Jun 7, 2010, 5:57:58 AM (11 years ago)
Author:
Peter Johansson
Message:

Fixes severe bug that we allowed copy construction of StatsCollection?
(compiler generated), which involved copying of pointers, which were
deleted in destructor, i.e., we allowed multiple deletion.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.7-stable/lib/StatsCollection.cc

    r847 r1075  
    5151  StatsCollection::~StatsCollection(void)
    5252  {
    53     for (map::const_iterator i(stats_.begin()); i!=stats_.end(); ++i) {
     53    for (map::iterator i(stats_.begin()); i!=stats_.end(); ++i) {
    5454      assert(i->second);
    5555      delete i->second;
     56      i->second = NULL;
    5657    }
    57 
    5858  }
    5959
Note: See TracChangeset for help on using the changeset viewer.