From 364996d69da617a1cd2c03cb2299e3121d86aa35 Mon Sep 17 00:00:00 2001
From: phil <me@filou.se>
Date: Fri, 23 Apr 2021 10:50:29 +0200
Subject: [PATCH] macos timer deinit fix

---
 ports/macos/timer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ports/macos/timer.c b/ports/macos/timer.c
index 96799a1..0accdad 100644
--- a/ports/macos/timer.c
+++ b/ports/macos/timer.c
@@ -42,7 +42,8 @@ void aes67_timer_init_system(void)
 
 void aes67_timer_deinit_system(void)
 {
-    dispatch_release(queue);
+    if (queue)
+        dispatch_release(queue);
 }
 
 void aes67_timer_init(struct aes67_timer *timer)
-- 
GitLab