summaryrefslogtreecommitdiff
path: root/src/irrlicht_changes/CGUITTFont.h
diff options
context:
space:
mode:
authork.h.lai <dlshcbmuipmam@hotmail.com>2021-02-03 03:56:24 +0800
committerGitHub <noreply@github.com>2021-02-02 20:56:24 +0100
commit2072afb72b4b3e9c5dcbcec71d824aeae1b35d19 (patch)
tree6ec9801012d207a746f4df8a6e0d157919720898 /src/irrlicht_changes/CGUITTFont.h
parentf227e40180b2035f33059749b14287478bab374a (diff)
downloadminetest-2072afb72b4b3e9c5dcbcec71d824aeae1b35d19.tar.gz
minetest-2072afb72b4b3e9c5dcbcec71d824aeae1b35d19.tar.bz2
minetest-2072afb72b4b3e9c5dcbcec71d824aeae1b35d19.zip
Fix memory leak detected by address sanitizer (#10896)
Diffstat (limited to 'src/irrlicht_changes/CGUITTFont.h')
-rw-r--r--src/irrlicht_changes/CGUITTFont.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/irrlicht_changes/CGUITTFont.h b/src/irrlicht_changes/CGUITTFont.h
index 310f74f67..b64e57a45 100644
--- a/src/irrlicht_changes/CGUITTFont.h
+++ b/src/irrlicht_changes/CGUITTFont.h
@@ -375,6 +375,7 @@ namespace gui
gui::IGUIEnvironment* Environment;
video::IVideoDriver* Driver;
io::path filename;
+ SGUITTFace* sguitt_face = nullptr;
FT_Face tt_face;
FT_Size_Metrics font_metrics;
FT_Int32 load_flags;