commit cb4e6762593892dafa86e22c682b2d8f55fca852 Author: Matthias Urlichs Date: Sun Feb 8 16:57:11 2015 +0000 pthread timer is never unhinged from its chain diff --git a/res/res_timing_pthread.c b/res/res_timing_pthread.c index 81efbf8..d88e5f7 100644 --- a/res/res_timing_pthread.c +++ b/res/res_timing_pthread.c @@ -153,6 +153,12 @@ static void pthread_timer_close(void *data) { struct pthread_timer *timer = data; + ao2_lock(pthread_timers); + ast_mutex_lock(&timing_thread.lock); + ao2_unlink(pthread_timers, timer); + ast_mutex_unlock(&timing_thread.lock); + ao2_unlock(pthread_timers); + ao2_ref(timer, -1); }