(trunk libT) #3567 "Minor memory leak in pthread_create()" -- fixed

This commit is contained in:
Charles Kerr 2010-09-18 22:13:46 +00:00
parent c7ebb37876
commit bf3dec4299
1 changed files with 3 additions and 2 deletions

View File

@ -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;