more places where display can be nil
This commit is contained in:
parent
2ec48bbca3
commit
ca63c078d9
3 changed files with 3 additions and 3 deletions
|
|
@ -132,7 +132,7 @@ agefont(Font *f)
|
|||
if(s->age){
|
||||
if(s->age<SUBFAGE && s->cf->name != nil){
|
||||
/* clean up */
|
||||
if(s->f != display->defaultsubfont)
|
||||
if(display==nil || s->f != display->defaultsubfont)
|
||||
freesubfont(s->f);
|
||||
s->cf = nil;
|
||||
s->f = nil;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue