Remove a potential memory leak.

This commit is contained in:
Jonathan Naylor 2017-03-25 09:48:31 +00:00
parent 92d22f72b3
commit 0d7f5ab22e

View file

@ -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");