From 8f59c8fb191ee96c599d89fcff52bf81c9873475 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 26 Feb 2025 07:25:50 -0400 Subject: [PATCH] MT#55283 change shutdown order Some components (the timer thread used by the codec handlers in particular) may hold references to components owned by the codeclib (the .so handles in particular). Move codeclib cleanup towards the end. Change-Id: Ic581588c27b69c025576c14a69e999c9ca5d1597 (cherry picked from commit 43cc9cc06d1ededc0f4291f6479e1e8443d53d34) (cherry picked from commit c747a9ad26e085f3a1fe244907e0df6cbef31157) --- daemon/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/main.c b/daemon/main.c index 0e0789943..6eb6374e4 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -1620,13 +1620,13 @@ int main(int argc, char **argv) { jitter_buffer_init_free(); media_player_free(); - codeclib_free(); call_interfaces_free(); ice_free(); dtls_cert_free(); control_ng_cleanup(); codecs_cleanup(); statistics_free(); + codeclib_free(); redis_close(rtpe_redis); if (rtpe_redis_write != rtpe_redis)