Fix a potential issue with vfontb/i/bi not getting freed when converting

font to curve.

(Sorry, I had typed a 10000k commit log last time, then it errored and
I really don't feel like retyping it all.)
This commit is contained in:
Alexander Ewering
2005-06-25 12:18:23 +00:00
parent bb7b3c4612
commit da76fc6e03

View File

@@ -2266,6 +2266,18 @@ void convertmenu(void)
cu->vfont->id.us--;
cu->vfont= 0;
}
if(cu->vfontb) {
cu->vfontb->id.us--;
cu->vfontb= 0;
}
if(cu->vfonti) {
cu->vfonti->id.us--;
cu->vfonti= 0;
}
if(cu->vfontbi) {
cu->vfontbi->id.us--;
cu->vfontbi= 0;
}
/* other users */
if(cu->id.us>1) {
ob1= G.main->object.first;