Fixed memory leak in ProfileSaveTask

This commit is contained in:
bm01
2012-06-25 14:36:02 +02:00
parent b8e9269488
commit 5057a8a7a3
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ public class ProfileSaveTask implements Runnable {
playerProfile.save();
if (!playerProfile.getPlayer().isOnline()) {
Users.getProfiles().remove(playerProfile);
Users.remove(playerProfile.getPlayerName());
}
}
}