1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix st thread exit bug, never implict invoke the st_thread_exit, which may cause memory leak. 0.9.112

This commit is contained in:
winlin 2014-05-23 13:56:40 +08:00
parent 12c29356d3
commit 5f7bacf678
8 changed files with 424 additions and 342 deletions

View file

@ -176,7 +176,9 @@ void* SrsThread::thread_fun(void* arg)
obj->thread_cycle();
st_thread_exit(NULL);
// never use the following exit function,
// it will cause the SRS memory leak.
//st_thread_exit(NULL);
return NULL;
}