From 1e7e307f697bd49c028eb80b84c06b09fcd01c6d Mon Sep 17 00:00:00 2001 From: Paul Kompfner Date: Thu, 16 Jan 2025 10:30:06 -0500 Subject: [PATCH] In iOS SimpleChatbot demo, call `release()` when disconnecting the voice client, since we're not using it after disconnecting --- .../client/ios/SimpleChatbot/model/CallContainerModel.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/simple-chatbot/client/ios/SimpleChatbot/model/CallContainerModel.swift b/examples/simple-chatbot/client/ios/SimpleChatbot/model/CallContainerModel.swift index 9dd1f620f..270bb5730 100644 --- a/examples/simple-chatbot/client/ios/SimpleChatbot/model/CallContainerModel.swift +++ b/examples/simple-chatbot/client/ios/SimpleChatbot/model/CallContainerModel.swift @@ -81,6 +81,7 @@ class CallContainerModel: ObservableObject { @MainActor func disconnect() { self.rtviClientIOS?.disconnect(completion: nil) + self.rtviClientIOS?.release() } func showError(message: String) {