mirror of
https://github.com/hneemann/Digital.git
synced 2025-10-03 01:41:16 -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
|
@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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user