plug memleak; always need to menuq_clear even when a selection is made.

This commit is contained in:
okan 2013-04-08 15:43:04 +00:00
parent 62a685d82a
commit 58c1d48d10

View File

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