mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Fix crash on exit if using scene condition
obs_source_get_name() returning nullptr was not handled
This commit is contained in:
parent
e8230d8e5b
commit
5366a4a6ed
|
|
@ -53,7 +53,7 @@ bool MacroConditionScene::CheckCondition()
|
|||
auto current = obs_frontend_get_current_scene();
|
||||
auto weak = obs_source_get_weak_source(current);
|
||||
bool match = weak == _scene.GetScene(false);
|
||||
SetVariableValue(obs_source_get_name(current));
|
||||
SetVariableValue(GetWeakSourceName(weak));
|
||||
obs_weak_source_release(weak);
|
||||
obs_source_release(current);
|
||||
return match;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user