mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-01-20 15:10:16 +01:00
Remove a potential memory leak.
This commit is contained in:
parent
92d22f72b3
commit
0d7f5ab22e
|
|
@ -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