Commit 8966ce24dbe9e9501993b6eac20eb0d9f07692f2
Fix recursion on discovering .desktop files
The directories that contain them shouldn't actually have
subdirectories, but keeping the code there just in case. Since
subdirectories are visited, whatever is found in them shouldn't be
discarded and no memory should be leaked.
Author: xaizek
Author date (UTC): 2026-10-04 12:34
Committer name: xaizek
Committer date (UTC): 2026-10-17 15:58
Parent(s): c328d98a9f7a8e8aec3c7342dab96fd142a3d82b
Signing key: 99DC5E4DB05F6BE2
Tree: b149a912ebcc433aabf9c3d650f26d89ff882719
| File ChangeLog changed (mode: 100644) (index b60ddc69c..db6be36a4) |
| 331 |
331 |
Fixed cleaning up IPC pipe file on exiting after handling `--remote` or |
Fixed cleaning up IPC pipe file on exiting after handling `--remote` or |
| 332 |
332 |
`--remote-expr`. |
`--remote-expr`. |
| 333 |
333 |
|
|
|
334 |
|
Fixed an unlikely memory leak on discovering .desktop files. |
|
335 |
|
|
| 334 |
336 |
0.14-beta to 0.14 (2025-02-08) |
0.14-beta to 0.14 (2025-02-08) |
| 335 |
337 |
|
|
| 336 |
338 |
Improved documentation on zh/zl menu keys a bit. |
Improved documentation on zh/zl menu keys a bit. |
| File src/int/desktop.c changed (mode: 100644) (index 09a2a982e..c93c627af) |
| ... |
... |
parse_desktop_files_internal(const char path[], const char mime_type[], |
| 77 |
77 |
build_path(full_path, sizeof(full_path), path, dentry->d_name); |
build_path(full_path, sizeof(full_path), path, dentry->d_name); |
| 78 |
78 |
if(get_dirent_type(dentry, full_path) == DT_DIR) |
if(get_dirent_type(dentry, full_path) == DT_DIR) |
| 79 |
79 |
{ |
{ |
| 80 |
|
parse_desktop_files(full_path, mime_type); |
|
|
80 |
|
parse_desktop_files_internal(full_path, mime_type, result); |
| 81 |
81 |
} |
} |
| 82 |
82 |
else |
else |
| 83 |
83 |
{ |
{ |