mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-15 11:20:03 +00:00
17 lines
259 B
C
17 lines
259 B
C
#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);
|
|
}
|