Fix accumulation of weak reference keys (mem leak) in snapshot cache
This commit is contained in:
parent
227f6a1b80
commit
62b4a5256e
2 changed files with 19 additions and 2 deletions
|
|
@ -1076,6 +1076,10 @@ public class MapManager {
|
|||
|
||||
if(saverestorepending)
|
||||
savePending();
|
||||
if(sscache != null) {
|
||||
sscache.cleanup();
|
||||
sscache = null;
|
||||
}
|
||||
}
|
||||
|
||||
private HashMap<World, File> worldTileDirectories = new HashMap<World, File>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue