aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend.c
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2020-03-15 12:19:50 +0100
committercbdev <cb@cbcdn.com>2020-03-15 12:19:50 +0100
commit6da00154f7745a4705047fc73ce42b7036b0bbdc (patch)
tree8c62c377827ccd0291ba17047e3bcdff3d9ccb64 /backend.c
parent05cdf563fcc4c7835ec422fa5d7ee86b68a9f1df (diff)
downloadmidimonster-6da00154f7745a4705047fc73ce42b7036b0bbdc.tar.gz
midimonster-6da00154f7745a4705047fc73ce42b7036b0bbdc.tar.bz2
midimonster-6da00154f7745a4705047fc73ce42b7036b0bbdc.zip
Fix build and CI exits
Diffstat (limited to 'backend.c')
-rw-r--r--backend.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend.c b/backend.c
index 65cbd7d..cb8bf3f 100644
--- a/backend.c
+++ b/backend.c
@@ -311,6 +311,9 @@ int backends_stop(){
size_t u, n;
instance** inst = NULL;
+ //channels before instances to support proper shutdown procedures
+ channels_free();
+
//shut down the registry
for(u = 0; u < registry.n; u++){
//fetch list of instances
@@ -335,7 +338,6 @@ int backends_stop(){
registry.instances[u] = NULL;
}
- channels_free();
free(registry.backends);
free(registry.instances);
registry.n = 0;