diff options
-rw-r--r-- | source/blender/ftfont/intern/FTF_TTFont.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/ftfont/intern/FTF_TTFont.cpp b/source/blender/ftfont/intern/FTF_TTFont.cpp index 5dbcf368331..ea743139c76 100644 --- a/source/blender/ftfont/intern/FTF_TTFont.cpp +++ b/source/blender/ftfont/intern/FTF_TTFont.cpp @@ -165,11 +165,11 @@ int FTF_TTFont::SetFont(char* str, int size) int err = 0; bool success = 0; - delete fonts; + if (fonts) delete fonts; + if (fontm) delete fontm; + if (fontl) delete fontl; fonts= NULL; - delete fontm; fontm= NULL; - delete fontl; fontl= NULL; font = new FTGLPixmapFont(str); |