From 691b04a32c7c5e09c74459e3a7e616180455f5e9 Mon Sep 17 00:00:00 2001 From: Hiroshi Horie <548776+hiroshihorie@users.noreply.github.com> Date: Sat, 26 Aug 2023 20:02:55 +0900 Subject: [PATCH] fix --- sdk/objc/api/peerconnection/RTCAudioTrack.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sdk/objc/api/peerconnection/RTCAudioTrack.mm b/sdk/objc/api/peerconnection/RTCAudioTrack.mm index 3d3af34893..87deaf8aa8 100644 --- a/sdk/objc/api/peerconnection/RTCAudioTrack.mm +++ b/sdk/objc/api/peerconnection/RTCAudioTrack.mm @@ -151,6 +151,9 @@ void OnData(const void *audio_data, 0, NULL, &buffer); + // format is no longer required + CFRelease(format); + if (status != 0) { NSLog(@"RTCAudioTrack: Failed to allocate sample buffer"); return;