mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 22:46:15 +01:00
docs: Mention GInitiallyUnowned when introducing refcounts
For completeness. Signed-off-by: Philip Withnall <pwithnall@endlessos.org> Fixes: #1568
This commit is contained in:
parent
a28b3c9dd6
commit
e7f9ae61dc
@ -280,7 +280,7 @@ ViewerFile *file = g_object_new (VIEWER_TYPE_FILE, NULL);
|
||||
<para>
|
||||
The reference count is initialized to one by
|
||||
<function><link linkend="g-object-new">g_object_new</link></function> which means that the caller
|
||||
is currently the sole owner of the newly-created reference.
|
||||
is currently the sole owner of the newly-created reference. (If the object is derived from <link linkend="GInitiallyUnowned"><type>GInitiallyUnowned</type></link>, this reference count is <link linkend="floating-ref">floating</link>.)
|
||||
When the reference count reaches zero, that is,
|
||||
when <function><link linkend="g-object-unref">g_object_unref</link></function> is called by the last client holding
|
||||
a reference to the object, the <emphasis>dispose</emphasis> and the
|
||||
|
Loading…
Reference in New Issue
Block a user