mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-05 18:40:58 +01:00
1ec331266a
Notifying during object destruction is a dubious "feature": objects might end up recreating a bunch of state just before clearing it; language bindings might get spurious notifications during garbage collection runs. We freeze the notification queue before running the dispose() chain; if the object was temporarily vivified during dispose, we thaw the notification queue, otherwise we let the instance clear it when we finalize it. See: https://gitlab.gnome.org/GNOME/gjs/-/issues/445