Merge pull request #2208 from RyanDwyer/instruction-use-after-free

Fix use after free in transaction code
master
Ryan Dwyer 6 years ago committed by GitHub
commit 7efeacf16c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -377,9 +377,11 @@ 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) {
for (int i = 0; i < view->swayc->instructions->length; ++i) {

Loading…
Cancel
Save