mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
修复ImgUtil.write写出临时文件未清理问题
This commit is contained in:
@@ -141,6 +141,9 @@ public class ImgWriter implements Flushable {
|
|||||||
throw new IORuntimeException(e);
|
throw new IORuntimeException(e);
|
||||||
} finally {
|
} finally {
|
||||||
writer.dispose();
|
writer.dispose();
|
||||||
|
// issue#IAPZG7
|
||||||
|
// FileCacheImageOutputStream会产生临时文件,此处关闭清除
|
||||||
|
IoUtil.closeQuietly(output);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user