Freeing fonts
This commit is contained in:
parent
d2304ecf93
commit
7539247be3
5
xmenu.c
5
xmenu.c
|
@ -1249,6 +1249,8 @@ cleanmenu(struct Menu *menu)
|
|||
static void
|
||||
cleanup(void)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
XUngrabPointer(dpy, CurrentTime);
|
||||
XUngrabKeyboard(dpy, CurrentTime);
|
||||
|
||||
|
@ -1259,6 +1261,9 @@ cleanup(void)
|
|||
XftColorFree(dpy, visual, colormap, &dc.separator);
|
||||
XftColorFree(dpy, visual, colormap, &dc.border);
|
||||
|
||||
for (i = 0; i < dc.nfonts; i++)
|
||||
XftFontClose(dpy, dc.fonts[i]);
|
||||
|
||||
XFreeGC(dpy, dc.gc);
|
||||
XCloseDisplay(dpy);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user