Compare commits

..

1 Commits

Author SHA1 Message Date
WarmUpTill
b4a1593dc9 Fix crash on shutdown caused by "Profile" condition
Some checks failed
debian-build / build (push) Has been cancelled
Push to master / Check Formatting 🔍 (push) Has been cancelled
Push to master / Build Project 🧱 (push) Has been cancelled
Push to master / Create Release 🛫 (push) Has been cancelled
2026-07-07 20:19:51 +02:00

View File

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