libdraw: fix some memory leaks in font handling
This commit is contained in:
parent
a3ec102dc7
commit
dc2a17b95c
5 changed files with 18 additions and 6 deletions
|
|
@ -36,6 +36,7 @@ buildfont(Display *d, char *buf, char *name)
|
|||
if(fnt->name==0 || fnt->cache==0 || fnt->subf==0){
|
||||
Err2:
|
||||
free(fnt->name);
|
||||
free(fnt->namespec);
|
||||
free(fnt->cache);
|
||||
free(fnt->subf);
|
||||
free(fnt->sub);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue