mirror of https://github.com/BOINC/boinc.git
Mgr: When removing entries from our hash table, delete data to avoid memory leaks
This commit is contained in:
parent
7cdb3a7080
commit
a31f4df97b
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue