aboutsummaryrefslogtreecommitdiff
path: root/src/irrlicht_changes/CGUITTFont.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-02-06 13:34:00 +0100
committersfan5 <sfan5@live.de>2021-02-06 13:34:56 +0100
commit0f74c7a977c412a81890926548e2a5c8dae5f6eb (patch)
tree37b4baa237fa0acef12c55615e51aad5dce4b71a /src/irrlicht_changes/CGUITTFont.cpp
parentd287da184cff737a661a78a2d485b6915316b28b (diff)
downloadminetest-0f74c7a977c412a81890926548e2a5c8dae5f6eb.tar.gz
minetest-0f74c7a977c412a81890926548e2a5c8dae5f6eb.tar.bz2
minetest-0f74c7a977c412a81890926548e2a5c8dae5f6eb.zip
Fix double free caused by CGUITTFont code
This partially reverts commit 2072afb72b4b3e9c5dcbcec71d824aeae1b35d19. fixes #10920
Diffstat (limited to 'src/irrlicht_changes/CGUITTFont.cpp')
-rw-r--r--src/irrlicht_changes/CGUITTFont.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/irrlicht_changes/CGUITTFont.cpp b/src/irrlicht_changes/CGUITTFont.cpp
index 0f3368822..bd4e700de 100644
--- a/src/irrlicht_changes/CGUITTFont.cpp
+++ b/src/irrlicht_changes/CGUITTFont.cpp
@@ -378,7 +378,6 @@ 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.
@@ -437,9 +436,6 @@ CGUITTFont::~CGUITTFont()
// Drop our driver now.
if (Driver)
Driver->drop();
-
- // Destroy sguitt_face after clearing c_faces
- delete sguitt_face;
}
void CGUITTFont::reset_images()