winlin

the st_thread_exit is ok, not the memory leak cause.

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