Freeing fonts

This commit is contained in:
phillbush 2020-07-31 10:09:26 -03:00
parent d2304ecf93
commit 7539247be3

View File

@ -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);
}