TVPT / VoxelSniper

The premiere long-distance brush editor for Minecraft
Other
128 stars 115 forks source link

Wrap Player keys in a WeakReference in the map. #248

Closed AgentK20 closed 10 years ago

AgentK20 commented 10 years ago

Prevents a massive memory leak over time as the CraftPlayer objects are, at the moment, NEVER released to allow for GC.

md-5 commented 10 years ago

Actually doing proper memory management is a better idea than just wrapping it in a weak reference and calling it a day.

MikeMatrix commented 10 years ago

Should at least fix the memory leak for now.