From 68c4617927caec3c74653e1282d349a1480ab554 Mon Sep 17 00:00:00 2001 From: jcm <6864788+jcm93@users.noreply.github.com> Date: Sun, 16 Mar 2025 06:37:49 -0500 Subject: [PATCH] mac-avcapture: Clear memory when creating frame struct --- plugins/mac-avcapture/plugin-main.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/mac-avcapture/plugin-main.m b/plugins/mac-avcapture/plugin-main.m index 67227b208..7fce6e14b 100644 --- a/plugins/mac-avcapture/plugin-main.m +++ b/plugins/mac-avcapture/plugin-main.m @@ -20,8 +20,8 @@ static void *av_capture_create(obs_data_t *settings, obs_source_t *source) capture_data->isFastPath = false; capture_data->settings = settings; capture_data->source = source; - capture_data->videoFrame = bmalloc(sizeof(OBSAVCaptureVideoFrame)); - capture_data->audioFrame = bmalloc(sizeof(OBSAVCaptureAudioFrame)); + capture_data->videoFrame = bzalloc(sizeof(OBSAVCaptureVideoFrame)); + capture_data->audioFrame = bzalloc(sizeof(OBSAVCaptureAudioFrame)); OBSAVCapture *capture = [[OBSAVCapture alloc] initWithCaptureInfo:capture_data];