Browse Source

Freeing fonts

master
phillbush 4 years ago
parent
commit
7539247be3
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      xmenu.c

+ 5
- 0
xmenu.c 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);
}


Loading…
Cancel
Save