added a missing close operation

This commit is contained in:
hneemann 2017-06-25 10:54:32 +02:00
parent 85177b2570
commit 2758608c17

View File

@ -57,8 +57,10 @@ public final class GraphicsImage extends GraphicSwing implements Closeable {
@Override @Override
public void close() throws IOException { public void close() throws IOException {
if (out != null) if (out != null) {
ImageIO.write(bi, format, out); ImageIO.write(bi, format, out);
out.close();
}
} }
/** /**