mirror of
https://github.com/transmission/transmission
synced 2025-03-04 10:38:13 +00:00
(trunk libT) #3567 "Minor memory leak in pthread_create()" -- fixed
This commit is contained in:
parent
c7ebb37876
commit
bf3dec4299
1 changed files with 3 additions and 2 deletions
|
@ -134,8 +134,9 @@ tr_threadNew( void ( *func )(void *),
|
||||||
t->thread = (DWORD) id;
|
t->thread = (DWORD) id;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
pthread_create( &t->thread, NULL, ( void * ( * )(
|
pthread_create( &t->thread, NULL, (void*(*)(void*))ThreadFunc, t );
|
||||||
void * ) )ThreadFunc, t );
|
pthread_detach( t->thread );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return t;
|
return t;
|
||||||
|
|
Loading…
Add table
Reference in a new issue