Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_posix/sys/src/libdraw/freesubfont.c – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include <u.h>
2
#include <libc.h>
3
#include <draw.h>
4
 
5
void
6
freesubfont(Subfont *f)
7
{
8
	if(f == 0)
9
		return;
10
	f->ref--;
11
	if(f->ref > 0)
12
		return;
13
	uninstallsubfont(f);
14
	free(f->info);	/* note: f->info must have been malloc'ed! */
15
	freeimage(f->bits);
16
	free(f);
17
}