mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-12 11:33:02 +01:00
It’s possible for the dispatch of the timeout source to race with the finalisation of the `GMemoryMonitorPoll`, given that the timeout is run in the GLib worker thread. Protect against that by holding a thread-safe weak ref on the `GMemoryMonitor` in the callback data. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Fixes: #3758
9.8 KiB
9.8 KiB