Codec (macOS): fixes a memory leak

This commit is contained in:
Carter Li committed 2026-08-31 16:34:59 +08:00
1 parent 4826986cd8
commit 12f0088d72
1 file changed
+1 -1
+1 -1
View File
@@ -41,7 +41,7 @@ static FFCodecType ffCodecCodecToType(CMVideoCodecType codec) {
}
static FFCodecType ffCodecDetectEncoders(void) {
CFArrayRef encoderList = NULL;
FF_CFTYPE_AUTO_RELEASE CFArrayRef encoderList = NULL;
if (VTCopyVideoEncoderList(NULL, &encoderList) != noErr || !encoderList) {
return FF_CODEC_TYPE_NONE;
}