plan9port/src/libdraw/freesubfont.c

18 lines
259 B
C
Raw Normal View History

2003-09-30 17:47:42 +00:00
#include <u.h>
#include <libc.h>
#include <draw.h>
void
freesubfont(Subfont *f)
{
if(f == 0)
return;
f->ref--;
if(f->ref > 0)
return;
uninstallsubfont(f);
free(f->info); /* note: f->info must have been malloc'ed! */
freeimage(f->bits);
free(f);
}