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:
Ingo Weinhold
2009-04-25 16:49:36 +00:00
parent dcb289f39e
commit 09401fe427
+1 -1
View File
@@ -172,7 +172,7 @@ ModelLoader::_Loader()
// clean up and notify the target
AutoLocker<BLocker> locker(fLock);
ThreadInfo* threadInfo = fThreads.Clear();
ThreadInfo* threadInfo = fThreads.Clear(true);
while (threadInfo != NULL) {
ThreadInfo* nextInfo = threadInfo->fNext;
delete threadInfo;