You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see,
If this is an expected behavior of reference counting GC, maybe would be good to mention in official doc the fact that self-referential constructs are prone to memory leaks. If we feel this is not needed we can close this issue
Godot version
v4.1.1.stable.official.bd6af8e0e
System information
Godot v4.1.1.stable - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 4080 (NVIDIA; 31.0.15.3623) - 13th Gen Intel(R) Core(TM) i9-13900K (32 Threads)
Issue description
Hi,
I have created custom class extending RefCounted type. Mentioned class does have a variable storing the reference to itself.
When I create an object of that class in _process i can see the number of objects growing.
I would expect Godot to clear the references and keep the number of objects at the same level.
Steps to reproduce
Run the scene from attached project and observe how object count is growing
Minimal reproduction project
MemLeak.zip
The text was updated successfully, but these errors were encountered: