Fixed memory leak in audin mac
@@ -420,6 +420,7 @@ UINT mac_freerdp_audin_client_subsystem_entry(PFREERDP_AUDIN_DEVICE_ENTRY_POINTS
#if defined(MAC_OS_X_VERSION_10_14)
if (@available(macOS 10.14, *))
{
+ @autoreleasepool {
AVAuthorizationStatus status =
[AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeAudio];
switch (status)
@@ -448,6 +449,7 @@ UINT mac_freerdp_audin_client_subsystem_entry(PFREERDP_AUDIN_DEVICE_ENTRY_POINTS
break;
}
}
+ }
#endif
return CHANNEL_RC_OK;
