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;
|
delete[] fCPUInfos;
|
||||||
fCPUInfos = NULL;
|
fCPUInfos = NULL;
|
||||||
|
|
||||||
if (fIORequests != NULL) {
|
delete fIORequests;
|
||||||
IORequest* request = fIORequests->Clear(true);
|
fIORequests = NULL;
|
||||||
while (request != NULL) {
|
|
||||||
IORequest* next = request->hashNext;
|
|
||||||
delete request;
|
|
||||||
request = next;
|
|
||||||
}
|
|
||||||
|
|
||||||
delete fIORequests;
|
|
||||||
fIORequests = NULL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user