Changeset 228

Show
Ignore:
Timestamp:
03/01/07 21:01:22 (1 year ago)
Author:
ug
Message:

Fixed a memory leak in GameList::reset.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 06/libkombilo/search.cpp

    r227 r228  
    37853785  for(vector<GameListEntry* >::iterator it = all->begin(); it != all->end(); it++) { 
    37863786    if ((*it)->hits) { 
     3787      for(vector<Hit* >::iterator ith = (*it)->hits->begin(); ith != (*it)->hits->end(); ith++) 
     3788        delete *ith; 
    37873789      delete (*it)->hits; 
    37883790      (*it)->hits = 0; 
    37893791    } 
    37903792    if ((*it)->candidates) { 
     3793      for(vector<Candidate* >::iterator itc = (*it)->candidates->begin(); itc != (*it)->candidates->end(); itc++) 
     3794        delete *itc; 
    37913795      delete (*it)->candidates; 
    37923796      (*it)->candidates = 0;