delete force convert of type, it's no necessary

This commit is contained in:
hyzboy 2020-06-18 03:40:32 +08:00
parent f1f3acdaa3
commit a58e1ee99c

View File

@ -17,7 +17,7 @@ namespace hgl
if(sem_init(ptr,PTHREAD_PROCESS_PRIVATE,0))
{
LOG_ERROR(OS_TEXT("sem_init error,max_count=")+OSString::valueOf(max_count));
delete (sem_t *)ptr;
delete ptr;
ptr=nullptr;
}
}