Remove a potential memory leak.
This commit is contained in:
parent
92d22f72b3
commit
0d7f5ab22e
1 changed files with 3 additions and 0 deletions
|
@ -76,6 +76,9 @@ void CReflectors::setParrot(const std::string& address, unsigned int port)
|
|||
|
||||
bool CReflectors::load()
|
||||
{
|
||||
for (std::vector<CYSFReflector*>::iterator it = m_newReflectors.begin(); it != m_newReflectors.end(); ++it)
|
||||
delete *it;
|
||||
|
||||
m_newReflectors.clear();
|
||||
|
||||
FILE* fp = ::fopen(m_hostsFile.c_str(), "rt");
|
||||
|
|
Loading…
Reference in a new issue