From 3e537416a959747d31c919c63499528d4cb2f27a Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 4 Feb 2020 18:03:30 +0100 Subject: [PATCH] sched: remove slew handler in finalization This allows repeated calls of SCH_Initialise() and SCH_Finalise(). --- sched.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sched.c b/sched.c index 2301258..3c5dc11 100644 --- a/sched.c +++ b/sched.c @@ -147,6 +147,8 @@ void SCH_Finalise(void) { ARR_DestroyInstance(file_handlers); + LCL_RemoveParameterChangeHandler(handle_slew, NULL); + initialised = 0; }