glib/gobject
Philip Withnall 0d57092a03 gobject: Document it’s unsafe to call g_object_ref() from GWeakNotify
The documentation sort of already said this, but it’s better to make it
explicit.

This avoids the situation where some of the weak notify callbacks for an
object have been called, and then a subsequent one resurrects the
object. Without some way of undoing the weak notifications already sent,
that would leave external state which is coupled to the object’s
lifecycle out of sync.

This arose from discussion on !2064.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2021-09-15 15:02:47 +01:00
..
2021-07-27 12:27:53 +01:00
2017-05-24 11:58:19 +02:00
2017-05-24 11:58:19 +02:00
2021-07-29 10:09:27 -04:00
2020-11-17 15:50:07 +00:00
2021-07-12 10:40:33 +00:00