mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 04:42:18 +02:00
UI: Fix settings dialog crashing on linux
Fix a double free in the settings window that occurs on linux only. The UI Element already gets deleted above as a child of the advAudioGroupBox which is not present on linux. Apart from making the code even more unreadable, this will likely come back to haunt us if the advAudioGroup will ever be shown on linux.
This commit is contained in:
parent
e7f754df97
commit
937356cc8a
@ -464,7 +464,9 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
|
||||
delete ui->advancedGeneralGroupBox;
|
||||
delete ui->enableNewSocketLoop;
|
||||
delete ui->enableLowLatencyMode;
|
||||
#ifdef __APPLE__
|
||||
delete ui->disableAudioDucking;
|
||||
#endif
|
||||
ui->rendererLabel = nullptr;
|
||||
ui->renderer = nullptr;
|
||||
ui->adapterLabel = nullptr;
|
||||
@ -474,8 +476,10 @@ OBSBasicSettings::OBSBasicSettings(QWidget *parent)
|
||||
ui->advancedGeneralGroupBox = nullptr;
|
||||
ui->enableNewSocketLoop = nullptr;
|
||||
ui->enableLowLatencyMode = nullptr;
|
||||
#ifdef __APPLE__
|
||||
ui->disableAudioDucking = nullptr;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef __APPLE__
|
||||
delete ui->disableOSXVSync;
|
||||
|
Loading…
Reference in New Issue
Block a user