fix: leaking active effects during quit (#850)

This commit is contained in:
Murat Seker 2020-06-28 23:46:36 +02:00 committed by GitHub
parent 485beab4f3
commit 45990f2726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,11 @@ EffectEngine::EffectEngine(Hyperion * hyperion)
EffectEngine::~EffectEngine() EffectEngine::~EffectEngine()
{ {
for (Effect * effect : _activeEffects)
{
effect->wait();
delete effect;
}
} }
QString EffectEngine::saveEffect(const QJsonObject& obj) QString EffectEngine::saveEffect(const QJsonObject& obj)