From a31f4df97bc5d57c1a2db174ca5046dc4d43e77e Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Sat, 22 Dec 2012 02:22:47 -0800 Subject: [PATCH] Mgr: When removing entries from our hash table, delete data to avoid memory leaks --- checkin_notes | 6 ++++++ clientgui/BOINCInternetFSHandler.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 441b0a7ca2..d6cd5dacc2 100644 --- a/checkin_notes +++ b/checkin_notes @@ -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 diff --git a/clientgui/BOINCInternetFSHandler.cpp b/clientgui/BOINCInternetFSHandler.cpp index f3fb2504d4..be002730b4 100755 --- a/clientgui/BOINCInternetFSHandler.cpp +++ b/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;