Fixed TaskSchduler not releasing memory and handles

Former-commit-id: 4bf70d2ffdaaaea6b8ee122bb4589b3d8c68884f
This commit is contained in:
Lynix
2013-11-30 16:13:54 +01:00
parent ca76c4dfb3
commit 0af23c11f5
2 changed files with 15 additions and 1 deletions

View File

@@ -53,7 +53,8 @@ void NzTaskScheduler::SetWorkerCount(unsigned int workerCount)
void NzTaskScheduler::Uninitialize()
{
NzTaskSchedulerImpl::Uninitialize();
if (NzTaskSchedulerImpl::IsInitialized())
NzTaskSchedulerImpl::Uninitialize();
}
void NzTaskScheduler::WaitForTasks()