mirror of
https://github.com/luanti-org/luanti.git
synced 2026-04-17 08:37:33 +00:00
Fix font memory leak (#17092)
This commit is contained in:
@@ -416,7 +416,7 @@ bool CGUITTFont::load(SGUITTFace *face, const u32 size, const bool antialias,
|
||||
update_load_flags();
|
||||
|
||||
// Store our face.
|
||||
face->grab();
|
||||
m_face.grab(face);
|
||||
tt_face = face->face;
|
||||
|
||||
// Store font metrics.
|
||||
|
||||
@@ -256,6 +256,7 @@ namespace gui
|
||||
core::vector2di getKerning(const char32_t thisLetter, const char32_t previousLetter) const;
|
||||
|
||||
video::IVideoDriver* Driver = nullptr;
|
||||
irr_ptr<SGUITTFace> m_face;
|
||||
FT_Face tt_face;
|
||||
FT_Size_Metrics font_metrics;
|
||||
FT_Int32 load_flags;
|
||||
|
||||
Reference in New Issue
Block a user