libdraw: fixed memory leak

This commit is contained in:
aiju 2011-08-14 15:12:57 +02:00
parent 6dcbea0a3e
commit 3a55f9ac92

View file

@ -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);