animationmgr: avoid possible uaf in handling anim updates
This commit is contained in:
parent
f6c5c659a7
commit
70f54a1e1b
1 changed files with 26 additions and 22 deletions
|
|
@ -209,7 +209,10 @@ void CHyprAnimationManager::tick() {
|
||||||
|
|
||||||
static auto PANIMENABLED = CConfigValue<Hyprlang::INT>("animations:enabled");
|
static auto PANIMENABLED = CConfigValue<Hyprlang::INT>("animations:enabled");
|
||||||
|
|
||||||
for (const auto& PAV : m_vActiveAnimatedVariables) {
|
if (!m_vActiveAnimatedVariables.empty()) {
|
||||||
|
const auto CPY = m_vActiveAnimatedVariables;
|
||||||
|
|
||||||
|
for (const auto& PAV : CPY) {
|
||||||
if (!PAV)
|
if (!PAV)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
@ -235,6 +238,7 @@ void CHyprAnimationManager::tick() {
|
||||||
default: UNREACHABLE();
|
default: UNREACHABLE();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
tickDone();
|
tickDone();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue