diff --git a/src/main/java/net/lingala/zip4j/io/inputstream/NumberedSplitRandomAccessFile.java b/src/main/java/net/lingala/zip4j/io/inputstream/NumberedSplitRandomAccessFile.java index 6c723c0e..432a1482 100644 --- a/src/main/java/net/lingala/zip4j/io/inputstream/NumberedSplitRandomAccessFile.java +++ b/src/main/java/net/lingala/zip4j/io/inputstream/NumberedSplitRandomAccessFile.java @@ -119,6 +119,14 @@ public long length() throws IOException { return randomAccessFile.length(); } + @Override + public void close() throws IOException { + if (randomAccessFile != null) { + randomAccessFile.close(); + } + super.close(); + } + public void seekInCurrentPart(long pos) throws IOException { randomAccessFile.seek(pos); }