From e7f9ae61dcf69c0befdaf9e21d27e366941610b7 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 11 Dec 2020 13:15:34 +0000 Subject: [PATCH] docs: Mention GInitiallyUnowned when introducing refcounts For completeness. Signed-off-by: Philip Withnall Fixes: #1568 --- docs/reference/gobject/tut_gobject.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/gobject/tut_gobject.xml b/docs/reference/gobject/tut_gobject.xml index d1cb41f71..0423a38a3 100644 --- a/docs/reference/gobject/tut_gobject.xml +++ b/docs/reference/gobject/tut_gobject.xml @@ -280,7 +280,7 @@ ViewerFile *file = g_object_new (VIEWER_TYPE_FILE, NULL); The reference count is initialized to one by g_object_new 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 GInitiallyUnowned, this reference count is floating.) When the reference count reaches zero, that is, when g_object_unref is called by the last client holding a reference to the object, the dispose and the