mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-15 12:58:29 +01:00
We had code to avoid that we could call a toggle "up" notification callback in locked state, but this was not covering the case in which the cancellable second to last reference was removed in its cancellation callback. In fact, in such case we end up going from 2 -> 1 references during the signal callback call and this leads to calling the toggle notify callback in locked state. To prevent this, add an even further reference before calling the callback (in locked state, but there's no risk that a toggle-up notification happens now), and drop it once unlocked again.
28 KiB
28 KiB