mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-04 19:48:56 -05:00
Fix crash on shutdown caused by "Profile" condition
This commit is contained in:
parent
577cfc6ba9
commit
b4a1593dc9
|
|
@ -15,6 +15,9 @@ bool MacroConditionProfile::_registered = MacroConditionFactory::Register(
|
|||
bool MacroConditionProfile::CheckCondition()
|
||||
{
|
||||
auto currentProfile = obs_frontend_get_current_profile();
|
||||
if (!currentProfile) {
|
||||
return false;
|
||||
}
|
||||
const bool match = _profile == currentProfile;
|
||||
bfree(currentProfile);
|
||||
return match;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user