mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-12-06 17:18:54 +08:00
修复ImgUtil.write没有释放BufferedImage可能导致内存泄露(issue#ID6VNJ@Gitee)
This commit is contained in:
parent
41307a6e3d
commit
b0c3350ef7
@ -1,7 +1,7 @@
|
||||
|
||||
# 🚀Changelog
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
# 5.8.42(2025-11-12)
|
||||
# 5.8.42(2025-11-17)
|
||||
|
||||
### 🐣新特性
|
||||
* 【core 】 `ListUtil`增加`zip`方法(pr#4052@Github)
|
||||
@ -18,6 +18,7 @@
|
||||
* 【http 】 修复`JsonUtil.toJsonStr`对Boolean和Number返回错误问题(issue#4109@Github)
|
||||
* 【core 】 修复`FileUtil.listFileNames`相对路径index混乱问题(issue#4121@Github)
|
||||
* 【core 】 修复`NumberWithFormat`没有实现Comparable接口导致的JSON排序报错问题(issue#ID61QR@Gitee)
|
||||
* 【core 】 修复`ImgUtil.write`没有释放BufferedImage可能导致内存泄露(issue#ID6VNJ@Gitee)
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
# 5.8.41(2025-10-12)
|
||||
|
||||
@ -1901,6 +1901,8 @@ public class ImgUtil {
|
||||
// issue#IAPZG7
|
||||
// FileCacheImageOutputStream会产生临时文件,此处关闭清除
|
||||
IoUtil.close(output);
|
||||
// issue#ID6VNJ
|
||||
flush(image);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user