From b28d4fbfa6bc9175d9b05f930cb03784868c477c Mon Sep 17 00:00:00 2001 From: Christopher Arndt Date: Thu, 6 Oct 2022 16:41:23 +0200 Subject: [PATCH] fix: add missing cleanup to example Signed-off-by: Christopher Arndt --- examples/test_port_connect_cb.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/test_port_connect_cb.nim b/examples/test_port_connect_cb.nim index c120c7b..9fa0700 100644 --- a/examples/test_port_connect_cb.nim +++ b/examples/test_port_connect_cb.nim @@ -39,6 +39,8 @@ if jclient == nil: echo getJackStatusErrorString(status) quit 1 +setControlCHook(cleanup) + discard portRegister(jclient, "in_1", JACK_DEFAULT_AUDIO_TYPE, PortIsInput.ord, 0) discard portRegister(jclient, "out_1", JACK_DEFAULT_AUDIO_TYPE, PortIsOutput.ord, 0)