-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mono does not release any objects of the type event. #53156
Comments
Btw under GDScripts its working. |
Fun fact when i try to free manualy, just some objects (randomly) will be destroyed. |
Duplicate of #41543, Mono is garbage collected so the memory release will happen whenever it decides it's needed. |
Sorry but the issue is, it will not be relaesed (holded without to use the obeject until the rest of my life :-)). So its a issue. Ticket have to be still open. |
Btw disposing and freeing are not working. |
Okai. Was figured out. Two issues at the same time. First one (event disposing) can be fixed with .Disposed(). Second memory leak i will open a new ticket. |
Godot version
4.0.dev
System information
Windows 10, Windows 11
Issue description
Each input event increse the holded objects inside the engine. The events will be holded permanent and not destroyed .
When i try to free the Event with .free(), it reduce the hold objects by the engine (however, not all will be destroyed).
Same issue with _UnhandledInput and _UnhandledKeyInput
Steps to reproduce
public override void _Input(InputEvent @event) { }
Just moving the mouse and u will get this
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: