Fix crash on exit if using scene condition

obs_source_get_name() returning nullptr was not handled
This commit is contained in:
WarmUpTill 2023-01-24 21:11:21 +01:00 committed by WarmUpTill
parent e8230d8e5b
commit 5366a4a6ed

View File

@ -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;