mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-19 20:32:15 +02:00
UI: Check for null pointer
This was actually the line of code that the mixer dock widget crash was triggered by. This technically shouldn't ever be null, but better to be safe than sorry.
This commit is contained in:
parent
9730578230
commit
6464d5f853
@ -14,7 +14,7 @@ void BrowserDock::closeEvent(QCloseEvent *event)
|
||||
panel_version = obs_browser_qcef_version();
|
||||
}
|
||||
|
||||
if (panel_version >= 2) {
|
||||
if (panel_version >= 2 && !!cefWidget) {
|
||||
cefWidget->closeBrowser();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user