From 5366a4a6edfd9efdc896a9b2d7de24b8c944e09a Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Tue, 24 Jan 2023 21:11:21 +0100 Subject: [PATCH] Fix crash on exit if using scene condition obs_source_get_name() returning nullptr was not handled --- src/macro-core/macro-condition-scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/macro-core/macro-condition-scene.cpp b/src/macro-core/macro-condition-scene.cpp index e46d58cc..f411c901 100644 --- a/src/macro-core/macro-condition-scene.cpp +++ b/src/macro-core/macro-condition-scene.cpp @@ -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;