Fix accumulation of weak reference keys (mem leak) in snapshot cache

This commit is contained in:
Mike Primm 2011-12-28 14:33:32 +08:00 committed by mikeprimm
parent 227f6a1b80
commit 62b4a5256e
2 changed files with 19 additions and 2 deletions

View file

@ -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>();