Don't delete IORequests that have not been finished. The objects nevertheless

belong to the respective Threads.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34792 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-12-28 14:23:23 +00:00
parent 25b7483716
commit d4e7d2de5c
@@ -411,17 +411,8 @@ ModelLoader::FinishLoading(bool success)
delete[] fCPUInfos;
fCPUInfos = NULL;
if (fIORequests != NULL) {
IORequest* request = fIORequests->Clear(true);
while (request != NULL) {
IORequest* next = request->hashNext;
delete request;
request = next;
}
delete fIORequests;
fIORequests = NULL;
}
delete fIORequests;
fIORequests = NULL;
}