mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
plug memleak; always need to menuq_clear even when a selection is made.
This commit is contained in:
parent
62a685d82a
commit
58c1d48d10
@ -251,7 +251,8 @@ mousefunc_menu_unhide(struct client_ctx *cc, void *arg)
|
||||
if (old_cc != NULL)
|
||||
client_ptrsave(old_cc);
|
||||
client_ptrwarp(cc);
|
||||
} else
|
||||
}
|
||||
|
||||
menuq_clear(&menuq);
|
||||
}
|
||||
|
||||
@ -277,6 +278,6 @@ mousefunc_menu_cmd(struct client_ctx *cc, void *arg)
|
||||
mi = menu_filter(sc, &menuq, NULL, NULL, 0, NULL, NULL);
|
||||
if (mi != NULL)
|
||||
u_spawn(((struct cmd *)mi->ctx)->image);
|
||||
else
|
||||
|
||||
menuq_clear(&menuq);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user