mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibGfx: Destroy FontConfig string iterator after use
This avoids a memory leak in `FontDatabase::font_directories()`.
This commit is contained in:
parent
d49106c007
commit
e69d9fb331
Notes:
github-actions[bot]
2025-06-25 07:00:56 +00:00
Author: https://github.com/tcl3
Commit: e69d9fb331
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5207
Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 0 deletions
|
@ -63,6 +63,7 @@ ErrorOr<Vector<String>> FontDatabase::font_directories()
|
|||
char const* dir_cstring = reinterpret_cast<char const*>(dir);
|
||||
paths.append(TRY(String::from_utf8(StringView { dir_cstring, strlen(dir_cstring) })));
|
||||
}
|
||||
FcStrListDone(dirs);
|
||||
return paths;
|
||||
|
||||
#elif defined(AK_OS_HAIKU)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue