libdraw: fixed memory leak
This commit is contained in:
parent
6dcbea0a3e
commit
3a55f9ac92
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@ freesubfont(Subfont *f)
|
||||||
if(f->ref > 0)
|
if(f->ref > 0)
|
||||||
return;
|
return;
|
||||||
uninstallsubfont(f);
|
uninstallsubfont(f);
|
||||||
|
free(f->name);
|
||||||
free(f->info); /* note: f->info must have been malloc'ed! */
|
free(f->info); /* note: f->info must have been malloc'ed! */
|
||||||
freeimage(f->bits);
|
freeimage(f->bits);
|
||||||
free(f);
|
free(f);
|
||||||
|
|
Loading…
Reference in a new issue