utopia-rise / godot-kotlin-jvm

Godot Kotlin JVM Module
MIT License
614 stars 44 forks source link

Enum of StringName causes memory leak #563

Closed Cthutq295 closed 3 weeks ago

Cthutq295 commented 8 months ago

When running a game and then closing it, console reports memory leak, caused by enum of StringName image image

Source code: https://pastebin.com/FJSYsmTb

piiertho commented 8 months ago

Can you post screenshot you posted on discord, with little description ?

piiertho commented 8 months ago

Linked to #508

CedNaru commented 3 weeks ago

Should be solved with #661. We now make sure to free all coretypes, even if they still technically not GCed by the JVM at the time. Values stored in singleton or enum shouldn't be an issue anymore.