Fix reference to weakref() in GDScript memory management

This commit is contained in:
Mahan Khalili
2026-07-04 18:23:18 +03:30
committed by GitHub
parent 6d1acf5573
commit 234281ab62

View File

@@ -2626,10 +2626,10 @@ for Nodes).
If a :ref:`class_Node` is deleted via ``free()`` or ``queue_free()``,
all of its children will also recursively be deleted.
To avoid reference cycles that can't be freed, a :ref:`class_WeakRef`
function is provided for creating weak references, which allow access
to the object without preventing a :ref:`class_RefCounted` from freeing.
Here is an example:
To avoid reference cycles that can't be freed, a
:ref:`weakref() <class_@GlobalScope_method_weakref>` function is provided for
creating weak references, which allow access to the object without preventing a
:ref:`class_RefCounted` from freeing. Here is an example:
::