[Bug]: Memory Leak: `DedicatedServerInfo` static reference to `MinecraftServer`
JoshieGemFinder opened this issue ยท 0 comments
Bug Description
The DedicatedServerInfo class contains a static reference to MinecraftServer in the form of private static MinecraftServer server
This field is not set to null when the singleplayer integrated server is closed (neither forge or fabric), causing the now-closed server to leak.
To fix this memory leak, either:
- bind to each platform's respective "server closed" event and set
serverto null - replace the
serverfield with aWeakReference
How to Reproduce?
N/A
Expected Behavior
N/A
Version
3.5.1
Mod Loader Version
Fabric 0.16.13, NeoForge 21.1.161
Mod Loader
N/A
Logs or additional context
No response