diff options
author | Daniel Dunbar <daniel@zuster.org> | 2004-01-23 17:19:44 +0300 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2004-01-23 17:19:44 +0300 |
commit | c427a1985478d72fe643435a1a4215f3b0c4268a (patch) | |
tree | e134a8ace1c40d78785f65b8a52248cfe0c691e4 /source/blender/ftfont/intern/FTF_TTFont.cpp | |
parent | 5d8c7e453746e0114caddb5a5cb11cdac6f5ed3b (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.cpp | 1 |
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); |