Fix statusline context free
This commit is contained in:
parent
02e48d1cd8
commit
86069d0a68
@ -804,8 +804,8 @@ client_apply_rule(struct client *c)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Get _NET_WM_NAME */
|
/* Get _NET_WM_NAME */
|
||||||
if(XGetWindowProperty(W->dpy, c->win, ATOM("_NET_WM_NAME"), 0, 0x77777777, false,
|
if(XGetWindowProperty(W->dpy, c->win, W->net_atom[net_wm_name], 0, 0x77777777, false,
|
||||||
ATOM("UTF8_STRING"), &rf, &f, &n, &il, &data)
|
W->net_atom[utf8_string], &rf, &f, &n, &il, &data)
|
||||||
== Success && data)
|
== Success && data)
|
||||||
{
|
{
|
||||||
wmname = xstrdup((char*)data);
|
wmname = xstrdup((char*)data);
|
||||||
|
|||||||
35
src/wmfs.c
35
src/wmfs.c
@ -433,23 +433,13 @@ wmfs_quit(void)
|
|||||||
t = SLIST_FIRST(&W->h.theme);
|
t = SLIST_FIRST(&W->h.theme);
|
||||||
SLIST_REMOVE_HEAD(&W->h.theme, next);
|
SLIST_REMOVE_HEAD(&W->h.theme, next);
|
||||||
XFreeFontSet(W->dpy, t->font.fontset);
|
XFreeFontSet(W->dpy, t->font.fontset);
|
||||||
free(t);
|
|
||||||
}
|
|
||||||
|
|
||||||
while(!SLIST_EMPTY(&W->h.rule))
|
|
||||||
{
|
|
||||||
r = SLIST_FIRST(&W->h.rule);
|
|
||||||
SLIST_REMOVE_HEAD(&W->h.rule, next);
|
|
||||||
status_free_ctx(&t->tags_n_sl);
|
status_free_ctx(&t->tags_n_sl);
|
||||||
status_free_ctx(&t->tags_s_sl);
|
status_free_ctx(&t->tags_s_sl);
|
||||||
status_free_ctx(&t->tags_o_sl);
|
status_free_ctx(&t->tags_o_sl);
|
||||||
|
status_free_ctx(&t->tags_u_sl);
|
||||||
status_free_ctx(&t->client_n_sl);
|
status_free_ctx(&t->client_n_sl);
|
||||||
status_free_ctx(&t->client_s_sl);
|
status_free_ctx(&t->client_s_sl);
|
||||||
free(r->class);
|
free(t);
|
||||||
free(r->instance);
|
|
||||||
free(r->role);
|
|
||||||
free(r->name);
|
|
||||||
free(r);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
while(!SLIST_EMPTY(&W->h.keybind))
|
while(!SLIST_EMPTY(&W->h.keybind))
|
||||||
@ -460,6 +450,14 @@ wmfs_quit(void)
|
|||||||
free(k);
|
free(k);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
while(!SLIST_EMPTY(&W->h.mousebind))
|
||||||
|
{
|
||||||
|
m = SLIST_FIRST(&W->h.mousebind);
|
||||||
|
SLIST_REMOVE_HEAD(&W->h.mousebind, globnext);
|
||||||
|
free((void*)m->cmd);
|
||||||
|
free(m);
|
||||||
|
}
|
||||||
|
|
||||||
while(!SLIST_EMPTY(&W->h.launcher))
|
while(!SLIST_EMPTY(&W->h.launcher))
|
||||||
{
|
{
|
||||||
l = SLIST_FIRST(&W->h.launcher);
|
l = SLIST_FIRST(&W->h.launcher);
|
||||||
@ -470,12 +468,15 @@ wmfs_quit(void)
|
|||||||
free(l);
|
free(l);
|
||||||
}
|
}
|
||||||
|
|
||||||
while(!SLIST_EMPTY(&W->h.mousebind))
|
while(!SLIST_EMPTY(&W->h.rule))
|
||||||
{
|
{
|
||||||
m = SLIST_FIRST(&W->h.mousebind);
|
r = SLIST_FIRST(&W->h.rule);
|
||||||
SLIST_REMOVE_HEAD(&W->h.mousebind, globnext);
|
SLIST_REMOVE_HEAD(&W->h.rule, next);
|
||||||
free((void*)m->cmd);
|
free(r->class);
|
||||||
free(m);
|
free(r->instance);
|
||||||
|
free(r->role);
|
||||||
|
free(r->name);
|
||||||
|
free(r);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FIFO stuffs */
|
/* FIFO stuffs */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user