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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user