We leaked the ThreadInfos due to incorrect use of OpenHashTable::Clear().
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30401 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -172,7 +172,7 @@ ModelLoader::_Loader()
|
|||||||
// clean up and notify the target
|
// clean up and notify the target
|
||||||
AutoLocker<BLocker> locker(fLock);
|
AutoLocker<BLocker> locker(fLock);
|
||||||
|
|
||||||
ThreadInfo* threadInfo = fThreads.Clear();
|
ThreadInfo* threadInfo = fThreads.Clear(true);
|
||||||
while (threadInfo != NULL) {
|
while (threadInfo != NULL) {
|
||||||
ThreadInfo* nextInfo = threadInfo->fNext;
|
ThreadInfo* nextInfo = threadInfo->fNext;
|
||||||
delete threadInfo;
|
delete threadInfo;
|
||||||
|
|||||||
Reference in New Issue
Block a user