Commit c86c45c
committed
Fix[denumerator]: close GFileEnumerator when enumeration finishes
Close and release GFileEnumerator after all entries are consumed
to prevent file descriptor leak on GVFS mount points (e.g. Vault).
枚举完成后关闭并释放GFileEnumerator,防止GVFS挂载点(如保险箱)的文件描述符泄漏。
Log: 修复枚举器耗尽后fd未释放的问题
Influence: 修复遍历Vault等GVFS目录后文件描述符一直被占用的问题,枚举完成后正确释放资源。1 parent 203d828 commit c86c45c
1 file changed
Lines changed: 12 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
644 | 644 | | |
645 | 645 | | |
646 | 646 | | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | 647 | | |
654 | 648 | | |
655 | 649 | | |
| |||
659 | 653 | | |
660 | 654 | | |
661 | 655 | | |
| 656 | + | |
| 657 | + | |
662 | 658 | | |
663 | 659 | | |
664 | 660 | | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
665 | 670 | | |
666 | 671 | | |
667 | 672 | | |
| |||
0 commit comments