summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2016-01-11 14:35:50 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-01-11 14:35:51 -0600
commitb543e389d051b57ef6cefb179d444c4e0157b1c2 (patch)
tree52b2ade28f5f84ec2e3e0e348e6b18a4734fc4e1 /res
parent3a2d91c2822475f916ce4445007e09920a2ca3d2 (diff)
parenta868a381f0f905da3782fb185f4d81504dd76898 (diff)
Merge "res_calendar: Cleanup scheduler context at unload."
Diffstat (limited to 'res')
-rw-r--r--res/res_calendar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/res/res_calendar.c b/res/res_calendar.c
index 1a9878b32..6f6f711b3 100644
--- a/res/res_calendar.c
+++ b/res/res_calendar.c
@@ -1853,6 +1853,8 @@ static int unload_module(void)
ast_mutex_unlock(&refreshlock);
pthread_join(refresh_thread, NULL);
+ ast_sched_context_destroy(sched);
+
AST_LIST_LOCK(&techs);
AST_LIST_TRAVERSE_SAFE_BEGIN(&techs, tech, list) {
ast_unload_resource(tech->module, 0);