mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +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);
|
throw new IORuntimeException(e);
|
||||||
} finally {
|
} finally {
|
||||||
writer.dispose();
|
writer.dispose();
|
||||||
|
// issue#IAPZG7
|
||||||
|
// FileCacheImageOutputStream会产生临时文件,此处关闭清除
|
||||||
|
IoUtil.closeQuietly(output);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user