From 9eedf1ac40e6f9e3129aafbf56c4667a367c7478 Mon Sep 17 00:00:00 2001 From: winlin Date: Fri, 23 May 2014 14:11:50 +0800 Subject: [PATCH] the st_thread_exit is ok, not the memory leak cause. --- trunk/src/app/srs_app_thread.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/trunk/src/app/srs_app_thread.cpp b/trunk/src/app/srs_app_thread.cpp index a18e645e7..b638263fc 100644 --- a/trunk/src/app/srs_app_thread.cpp +++ b/trunk/src/app/srs_app_thread.cpp @@ -176,9 +176,7 @@ void* SrsThread::thread_fun(void* arg) obj->thread_cycle(); - // never use the following exit function, - // it will cause the SRS memory leak. - //st_thread_exit(NULL); + st_thread_exit(NULL); return NULL; } \ No newline at end of file