mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
261447a498
New entries indirectly added to `pending_queue_redraw` during the loop would make our iterator invalid and cause `g_hash_table_iter_next` to fail without having visited all elements. That was seen as assertion failures but also likely resulted in incomplete paint clips. Now we steal the iterator's entry before such corruption can happen, free it manually, and reset the iterator to the beginning on every iteration. This is actually safe and efficient because we're removing each entry we visit. So no time is wasted in resuming from the (new) beginning of the hash table. Fixes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1557 Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1615> |
||
---|---|---|
.. | ||
clutter | ||
.gitignore | ||
meson.build |