mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-26 22:41:59 -04:00
added a missing close operation
This commit is contained in:
parent
85177b2570
commit
2758608c17
@ -57,8 +57,10 @@ public final class GraphicsImage extends GraphicSwing implements Closeable {
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
if (out != null)
|
||||
if (out != null) {
|
||||
ImageIO.write(bi, format, out);
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user