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
|
|
@ -129,7 +129,7 @@ freefont(Font *f)
|
|||
}
|
||||
for(i=0; i<f->nsubf; i++){
|
||||
s = f->subf[i].f;
|
||||
if(s && s!=display->defaultsubfont)
|
||||
if(s && (!display || s!=display->defaultsubfont))
|
||||
freesubfont(s);
|
||||
}
|
||||
freeimage(f->cacheimage);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue