Mgr: When removing entries from our hash table, delete data to avoid memory leaks

This commit is contained in:
Charlie Fenton 2012-12-22 02:22:47 -08:00 committed by Oliver Bock
parent 7cdb3a7080
commit a31f4df97b
2 changed files with 7 additions and 1 deletions

View File

@ -7855,3 +7855,9 @@ David 21 Dec 2012
sched/
edf_sim.cpp
sched_send.cpp,h
Charlie 22 Dec 2012
- Mgr: When removing entries from our hash table, delete data to avoid memory
leaks.
clientgui/
BOINCInternetFSHandler.cpp

View File

@ -631,7 +631,7 @@ void CBOINCInternetFSHandler::UnchacheMissingItems() {
// We must get next node before deleting this one
node = m_Hash->Next();
if (obj->m_Len == 0) {
m_Hash->Delete(obj->m_Key);
delete m_Hash->Delete(obj->m_Key);
}
}
m_bMissingItems = false;