mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
1ff1100d76
The CallyStage objects lifetime is tied to the stage, so if we add a weak pointer to it, we won't be able to remove it, as we would try to do so not until the stage itself is being disposed, at which point removing it fails. However, not removing it will make the stage try to clean up the weak refs, and since it does this more or less directly after freeing the cally stage, it ends up writing NULL to freed memory, causing memory corruption. Fix this by avoiding adding the weak pointer when that pointer is to the stage. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1775> |
||
---|---|---|
.. | ||
clutter | ||
.gitignore | ||
meson.build |