mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
Merge pull request #2208 from RyanDwyer/instruction-use-after-free
Fix use after free in transaction code
This commit is contained in:
commit
7efeacf16c
1 changed files with 3 additions and 1 deletions
|
@ -377,8 +377,10 @@ static void set_instructions_ready(struct sway_view *view, int index) {
|
|||
for (int i = 0; i <= index; ++i) {
|
||||
struct sway_transaction_instruction *instruction =
|
||||
view->swayc->instructions->items[i];
|
||||
if (!instruction->ready) {
|
||||
set_instruction_ready(instruction);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void transaction_notify_view_ready(struct sway_view *view, uint32_t serial) {
|
||||
|
|
Loading…
Reference in a new issue