X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Firrlicht_changes%2FCGUITTFont.cpp;fp=src%2Firrlicht_changes%2FCGUITTFont.cpp;h=0f3368822e9f8477d6e2dbe81779c0b5605e5d8d;hb=2072afb72b4b3e9c5dcbcec71d824aeae1b35d19;hp=bd4e700dec7bbbd3b75698499f0669278d825532;hpb=f227e40180b2035f33059749b14287478bab374a;p=dragonfireclient.git diff --git a/src/irrlicht_changes/CGUITTFont.cpp b/src/irrlicht_changes/CGUITTFont.cpp index bd4e700de..0f3368822 100644 --- a/src/irrlicht_changes/CGUITTFont.cpp +++ b/src/irrlicht_changes/CGUITTFont.cpp @@ -378,6 +378,7 @@ bool CGUITTFont::load(const io::path& filename, const u32 size, const bool antia } // Store our face. + sguitt_face = face; tt_face = face->face; // Store font metrics. @@ -436,6 +437,9 @@ CGUITTFont::~CGUITTFont() // Drop our driver now. if (Driver) Driver->drop(); + + // Destroy sguitt_face after clearing c_faces + delete sguitt_face; } void CGUITTFont::reset_images()