diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-08-10 00:03:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 00:03:49 +0200 |
commit | 9da08cecbde2c7ec7522f793e934f7dfd9dc35ff (patch) | |
tree | 7d722aa2f4600cfe346f101fff1397f3d42c6a97 | |
parent | 29422b60f1cd1e2e1f9fcda5a5ea32a30da35831 (diff) | |
parent | 6510e11ae9e10f3669f5aab05cd08db71dea1df8 (diff) |
Merge pull request #64151 from bruvzg/fc_leak_fix
-rw-r--r-- | platform/linuxbsd/os_linuxbsd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/linuxbsd/os_linuxbsd.cpp b/platform/linuxbsd/os_linuxbsd.cpp index e306c1054b..197d31dc81 100644 --- a/platform/linuxbsd/os_linuxbsd.cpp +++ b/platform/linuxbsd/os_linuxbsd.cpp @@ -368,6 +368,7 @@ Vector<String> OS_LinuxBSD::get_system_fonts() const { FcPatternDestroy(pattern); } FcObjectSetDestroy(object_set); + FcConfigDestroy(config); for (const String &E : font_names) { ret.push_back(E); @@ -417,6 +418,8 @@ String OS_LinuxBSD::get_system_font_path(const String &p_font_name, bool p_bold, FcPatternDestroy(pattern); } FcObjectSetDestroy(object_set); + FcConfigDestroy(config); + return ret; #else ERR_FAIL_V_MSG(String(), "Godot was compiled without fontconfig, system font support is disabled."); |