UI: Create OBSPermissions on stack
This fixes the window leaking and may improve performance.
This commit is contained in:
parent
95cbd21a3b
commit
4c9ebc753c
2 changed files with 9 additions and 10 deletions
|
|
@ -5033,12 +5033,11 @@ void OBSBasic::on_action_Settings_triggered()
|
|||
void OBSBasic::on_actionShowMacPermissions_triggered()
|
||||
{
|
||||
#ifdef __APPLE__
|
||||
OBSPermissions *check =
|
||||
new OBSPermissions(this, CheckPermission(kScreenCapture),
|
||||
CheckPermission(kVideoDeviceAccess),
|
||||
CheckPermission(kAudioDeviceAccess),
|
||||
CheckPermission(kAccessibility));
|
||||
check->exec();
|
||||
OBSPermissions check(this, CheckPermission(kScreenCapture),
|
||||
CheckPermission(kVideoDeviceAccess),
|
||||
CheckPermission(kAudioDeviceAccess),
|
||||
CheckPermission(kAccessibility));
|
||||
check.exec();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue