From: Sebastian B. <sb...@us...> - 2013-12-24 09:12:45
|
Update of /cvsroot/simplemail/simplemail/gtk In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv30841/gtk Modified Files: subthreads.c Log Message: Remove the thread from the thread list if it ends. Index: subthreads.c =================================================================== RCS file: /cvsroot/simplemail/simplemail/gtk/subthreads.c,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- subthreads.c 24 Dec 2013 09:12:28 -0000 1.32 +++ subthreads.c 24 Dec 2013 09:12:43 -0000 1.33 @@ -171,6 +171,11 @@ tad->thread->main_loop = g_main_loop_new(tad->thread->context, FALSE); tad->entry(tad->eudata); + + g_mutex_lock(thread_list_mutex); + node_remove(&tad->thread->node); + g_mutex_unlock(thread_list_mutex); + return NULL; } |