This commit is contained in:
speedie 2023-02-03 21:48:00 +01:00
parent 1d12249948
commit 9311764fbb

View file

@ -1538,11 +1538,11 @@ cleanupmon(Monitor *mon)
size_t i; size_t i;
for (i = 0; i < LENGTH(ftags); i++) for (i = 0; i < LENGTH(ftags); i++)
if (m->tagmap[i]) if (mon->tagmap[i])
XFreePixmap(dpy, m->tagmap[i]); XFreePixmap(dpy, mon->tagmap[i]);
free(m->tagmap); free(mon->tagmap);
XUnmapWindow(dpy, m->tagwin); XUnmapWindow(dpy, mon->tagwin);
XDestroyWindow(dpy, m->tagwin); XDestroyWindow(dpy, mon->tagwin);
#endif #endif
free(mon); free(mon);
} }