From 3fc5229269fb01de85e56bacce91f11799e62054 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 21 Oct 2017 23:19:12 +0200 Subject: Fix crashes on termination * some internal datastructures were freed, but Jack was not properly shut down. This resulted in occasional crashes on shutdown. * The (incomplete) cleanup code has been commented out, which should work for the time being. Of course, the program should clean up properly but this is tedious and the internal datastructures will change in the forseeable future. --- applause.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'applause.c') diff --git a/applause.c b/applause.c index 6bbfa36..b50b3aa 100644 --- a/applause.c +++ b/applause.c @@ -963,10 +963,11 @@ main(int argc, char **argv) * FIXME: Shut down connection server. * FIXME: Clean up properly. */ - for (int i = 0; i < output_ports_count; i++) { +#if 0 + for (int i = 0; i < output_ports_count; i++) svsem_free(output_ports[i].buffer_sem); - } free(output_ports); +#endif lua_close(L); -- cgit v1.2.3