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

This commit is contained in:
WarmUpTill 2026-07-07 20:19:51 +02:00
parent 577cfc6ba9
commit b4a1593dc9

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;