fix
This commit is contained in:
1 parent
425f6eddbe
commit
af505203dd
1 file changed
+3
-2
@@ -19,8 +19,9 @@ public class ImageIO {
|
||||
}
|
||||
|
||||
public static BufferedImage read(URL input) throws IOException {
|
||||
BufferedImage img = read(input.openStream());
|
||||
input.close();
|
||||
InputStream is = input.openStream();
|
||||
BufferedImage img = read(is);
|
||||
is.close();
|
||||
return img;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user