faces: fix minor image memory leak
This commit is contained in:
parent
29f4de5f53
commit
2fd6c5e0f6
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,7 @@ freeface(Face *f)
|
|||
{
|
||||
int i;
|
||||
|
||||
if(f->file!=nil && f->bit!=f->file->image)
|
||||
if(f->file==nil || f->bit!=f->file->image)
|
||||
freeimage(f->bit);
|
||||
freefacefile(f->file);
|
||||
for(i=0; i<Nstring; i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue