diff --git a/src/magic/data/AvatarImages.java b/src/magic/data/AvatarImages.java index 8eaafc68aa..0d956f184a 100644 --- a/src/magic/data/AvatarImages.java +++ b/src/magic/data/AvatarImages.java @@ -45,9 +45,7 @@ public class AvatarImages { private PlayerAvatar loadAvatar(final File file) { BufferedImage image; try { - final InputStream stream=new FileInputStream(file); - image=ImageIO.read(stream); - stream.close(); + image=ImageIO.read(file); } catch (final Exception ex) { image=IconImages.MISSING; }