mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-13 04:37:14 -05:00
Fix crash on exit if using scene condition
obs_source_get_name() returning nullptr was not handled
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user