Sign in
plan9port
/
plan9
/
08e793723cad1c7aed2e8cb16c8592aba5ad05e9
/
.
/
src
/
libdraw
/
freesubfont.c
blob: 6830b9dcd4090cc7ada8470482c08888a4da64f8 [
file
] [
log
] [
blame
]
#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
);
}