delete force convert of type, it's no necessary
This commit is contained in:
parent
f1f3acdaa3
commit
a58e1ee99c
@ -17,7 +17,7 @@ namespace hgl
|
|||||||
if(sem_init(ptr,PTHREAD_PROCESS_PRIVATE,0))
|
if(sem_init(ptr,PTHREAD_PROCESS_PRIVATE,0))
|
||||||
{
|
{
|
||||||
LOG_ERROR(OS_TEXT("sem_init error,max_count=")+OSString::valueOf(max_count));
|
LOG_ERROR(OS_TEXT("sem_init error,max_count=")+OSString::valueOf(max_count));
|
||||||
delete (sem_t *)ptr;
|
delete ptr;
|
||||||
ptr=nullptr;
|
ptr=nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user