Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2004-01-23 17:19:44 +0300
committerDaniel Dunbar <daniel@zuster.org>2004-01-23 17:19:44 +0300
commitc427a1985478d72fe643435a1a4215f3b0c4268a (patch)
treee134a8ace1c40d78785f65b8a52248cfe0c691e4 /source/blender/ftfont/intern/FTF_TTFont.cpp
parent5d8c7e453746e0114caddb5a5cb11cdac6f5ed3b (diff)
- FTF_TTFont didn't initialize fontm,fontl,fonts to NULL, leads to
possible bad free - FTF_Api.cpp used static C++ object, hard to understand and icky, was probably source of phase4's crashes, replaced with dynamically allocated object and added FTF_End to free it and sensible time.
Diffstat (limited to 'source/blender/ftfont/intern/FTF_TTFont.cpp')
-rw-r--r--source/blender/ftfont/intern/FTF_TTFont.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/ftfont/intern/FTF_TTFont.cpp b/source/blender/ftfont/intern/FTF_TTFont.cpp
index ea743139c76..f9fed8d2ea1 100644
--- a/source/blender/ftfont/intern/FTF_TTFont.cpp
+++ b/source/blender/ftfont/intern/FTF_TTFont.cpp
@@ -100,6 +100,7 @@ FTF_TTFont::FTF_TTFont(void)
#endif
font=NULL;
+ fontm= fonts= fontl= NULL;
font_size=FONT_SIZE_DEFAULT;
strcpy(encoding_name, SYSTEM_ENCODING_DEFAULT);