pinosaur
/
dmenu.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
cleaned up
[dmenu.git]
/
draw
/
cleanupdraw.c
1
/* See LICENSE file for copyright and license details. */
2
#include <X11/Xlib.h>
3
#include "draw.h"
4
5
void
6
cleanupdraw(DC *dc) {
7
if(dc->font.set)
8
XFreeFontSet(dc->dpy, dc->font.set);
9
else
10
XFreeFont(dc->dpy, dc->font.xfont);
11
XFreePixmap(dc->dpy, dc->drawable);
12
XFreeGC(dc->dpy, dc->gc);
13
}