diff options
author | Ton Roosendaal <ton@blender.org> | 2005-10-11 23:09:27 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-10-11 23:09:27 +0400 |
commit | 63e02e04361e1dd6f3c75f9a758f1852600a15b4 (patch) | |
tree | f6ae3a5ac4b955e82981746f216e418c1d76a3d5 /source/blender/blenkernel/intern/font.c | |
parent | 5c31e9f2b57457b1bf1384d466e736cb93108e29 (diff) |
Found a crasher in editing text; load file with text, enter editmode for
it and reload. I could fix the crash quickly, but it still gives not freed
memory errors.
More important; this code is VERY BAD! Not sure who added all this *goto*
stuff, but it's not acceptable code that way... (kernel, font.c)
The hacks in editfont.c are very bad too. I really hope Alexander and/or
Mika will clean up before we officially release!
Diffstat (limited to 'source/blender/blenkernel/intern/font.c')
-rw-r--r-- | source/blender/blenkernel/intern/font.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/font.c b/source/blender/blenkernel/intern/font.c index 00c9d765226..06e497b15e6 100644 --- a/source/blender/blenkernel/intern/font.c +++ b/source/blender/blenkernel/intern/font.c @@ -701,7 +701,9 @@ struct chartrans *text_to_curve(Object *ob, int mode) ascii = mem[i]; info = &(cu->strinfo[i]); vfont = which_vfont(cu, info); - + + if(vfont==NULL) break; + // Find the character while(che) { |