mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-09-11 13:25:42 +03:00
hookSystem: Make needsDeadCleanup volatile (#6356)
The value of needsDeadCleanup would be clobbered after longjmp, having an undefined value.
This commit is contained in:
parent
af5f24929d
commit
429cff340d
@ -28,7 +28,7 @@ void CHookSystemManager::emit(std::vector<SCallbackFNPtr>* const callbacks, SCal
|
||||
return;
|
||||
|
||||
std::vector<HANDLE> faultyHandles;
|
||||
bool needsDeadCleanup = false;
|
||||
volatile bool needsDeadCleanup = false;
|
||||
|
||||
for (auto& cb : *callbacks) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user