summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2016-01-11 14:35:40 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-01-11 14:35:40 -0600
commit85fdbcefae17b9b91a9dd087955a7a903922a6ea (patch)
tree2dfded04e08b770be471c0f2d12b11f312c7e47a
parent672920d0cf99a2ac95658684cff51439cd6ccde3 (diff)
parent1d3a1167fca6b6e9d55f355b485ff4ad19ba23e8 (diff)
Merge "res_calendar: Cleanup scheduler context at unload." into 13
-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 5b911ca5b..264165470 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);