1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

[Complex Text Layouts] Fix bitmap font memory leak.

This commit is contained in:
bruvzg
2020-12-01 11:42:29 +02:00
parent c3cc9d82b4
commit 384211af4b
3 changed files with 15 additions and 4 deletions

View File

@@ -2507,9 +2507,11 @@ void TextServerAdvanced::register_server() {
}
TextServerAdvanced::TextServerAdvanced() {
hb_bmp_create_font_funcs();
}
TextServerAdvanced::~TextServerAdvanced() {
hb_bmp_free_font_funcs();
u_cleanup();
#ifndef ICU_STATIC_DATA
if (icu_data != nullptr) {