mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-24 01:48:53 +02:00
Clarify in g_object_weak_ref() docs that the callback is called during disposing and not finalizing
This especially has the effect that any GWeakRefs to the object will not necessarily be set to NULL yet if called as part of g_object_run_dispose() and not as part of g_object_unref().
This commit is contained in:
@@ -2975,7 +2975,7 @@ weak_refs_notify (gpointer data)
|
||||
* @data: extra data to pass to notify
|
||||
*
|
||||
* Adds a weak reference callback to an object. Weak references are
|
||||
* used for notification when an object is finalized. They are called
|
||||
* used for notification when an object is disposed. They are called
|
||||
* "weak references" because they allow you to safely hold a pointer
|
||||
* to an object without calling g_object_ref() (g_object_ref() adds a
|
||||
* strong reference, that is, forces the object to stay alive).
|
||||
|
Reference in New Issue
Block a user