mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
Codec (macOS): fixes a memory leak
This commit is contained in:
@@ -41,7 +41,7 @@ static FFCodecType ffCodecCodecToType(CMVideoCodecType codec) {
|
||||
}
|
||||
|
||||
static FFCodecType ffCodecDetectEncoders(void) {
|
||||
CFArrayRef encoderList = nullptr;
|
||||
FF_CFTYPE_AUTO_RELEASE CFArrayRef encoderList = nullptr;
|
||||
if (VTCopyVideoEncoderList(nullptr, &encoderList) != noErr || !encoderList) {
|
||||
return FF_CODEC_TYPE_NONE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user