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