Remove stale reflector entries from the list.
This commit is contained in:
parent
92a401ba0a
commit
a3944b5b98
1 changed files with 4 additions and 0 deletions
|
@ -40,6 +40,8 @@ CReflectors::~CReflectors()
|
|||
{
|
||||
for (std::vector<CYSFReflector*>::iterator it = m_reflectors.begin(); it != m_reflectors.end(); ++it)
|
||||
delete *it;
|
||||
|
||||
m_reflectors.clear();
|
||||
}
|
||||
|
||||
static bool refComparison(const CYSFReflector* r1, const CYSFReflector* r2)
|
||||
|
@ -71,6 +73,8 @@ bool CReflectors::load()
|
|||
for (std::vector<CYSFReflector*>::iterator it = m_reflectors.begin(); it != m_reflectors.end(); ++it)
|
||||
delete *it;
|
||||
|
||||
m_reflectors.clear();
|
||||
|
||||
char buffer[100U];
|
||||
while (::fgets(buffer, 100U, fp) != NULL) {
|
||||
if (buffer[0U] == '#')
|
||||
|
|
Loading…
Reference in a new issue