(trunk libT) #3567 "Minor memory leak in pthread_create()" -- fixed
This commit is contained in:
parent
c7ebb37876
commit
bf3dec4299
|
@ -134,8 +134,9 @@ tr_threadNew( void ( *func )(void *),
|
|||
t->thread = (DWORD) id;
|
||||
}
|
||||
#else
|
||||
pthread_create( &t->thread, NULL, ( void * ( * )(
|
||||
void * ) )ThreadFunc, t );
|
||||
pthread_create( &t->thread, NULL, (void*(*)(void*))ThreadFunc, t );
|
||||
pthread_detach( t->thread );
|
||||
|
||||
#endif
|
||||
|
||||
return t;
|
||||
|
|
Loading…
Reference in New Issue