From 8ef456858d8d2f6ec82651daeba3285aebe097c9 Mon Sep 17 00:00:00 2001 From: Zhehang Ding Date: Thu, 9 Jan 2025 08:48:28 +0800 Subject: [PATCH] Doc the behavior of RefCounted after a cancellation of deletion --- doc/classes/Object.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/classes/Object.xml b/doc/classes/Object.xml index ec34d464d9b..6ac16411cd2 100644 --- a/doc/classes/Object.xml +++ b/doc/classes/Object.xml @@ -509,7 +509,7 @@ - If this method is called during [constant NOTIFICATION_PREDELETE], this object will reject being freed and will remain allocated. This is mostly an internal function used for error handling to avoid the user from freeing objects when they are not intended to. + If this method is called during [constant NOTIFICATION_PREDELETE], this object will reject being freed and will remain allocated. This is mostly an internal function used for error handling to avoid the user from freeing objects when they are not intended to. After cancellation the reference count of a [RefCounted] will remain zero and cannot be revived, it must be manually freed.