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'm affected with a similar issue (I suppose is basically the same as this one so I avoid to spawn a new issue for this), in which the leak happens if you cast a variable to the same class instead.
We have a scene LeakTest.tscn with an attached script LeakTest.gd
This gives leaked instance of LeakTest.gd upon closing the program. With the same code, if I remove the cast it works correctly. I also noted that if you specify return values (or function parameters) typed with the same custom class it works fine and no leaks happens.
Godot version:
3.3.rc8
(master seems to be unaffected)
Issue description:
If a class references itself in a variable type, it causes a leak.
Probably related:
#16959
#45986
#46467
Steps to reproduce:
Attach the following script to a node and run.
The log is as follows:
Minimal reproduction project:
bug_unfreed.zip
Run, then close the running project.
The text was updated successfully, but these errors were encountered: