Commit 05e13b1
eventhandler: Fix possible crash on OBS start in Studio Mode
When OBS Studio is started in Studio Mode, if a scene collection was not
successfully found and loaded, the OBS Frontend API would, prior to
obsproject/obs-studio@577e350,
emit OBS_FRONTEND_EVENT_SCENE_CHANGED and
OBS_FRONTEND_EVENT_PREVIEW_SCENE_CHANGED anyway. This would result in
currentScene here being a nullptr, causing a crash.
For completeness, check for nullptr here so that we cannot crash if
obs_frontend_get_current_scene() returns a nullptr.1 parent 4bf9592 commit 05e13b1
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
| |||
0 commit comments