mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
revert the 1.4 change - causes a double free noticed by grange@ a while
ago while using kazehakase (or clients that don't set a name). ok oga@
This commit is contained in:
parent
8bbc376fd9
commit
6e9fa7548b
2
menu.c
2
menu.c
@ -161,7 +161,7 @@ menu_filter(struct menu_q *menuq, char *prompt, char *initial, int dummy,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
if ((dummy == 0 && mi->dummy) || (mi->text[0] == '\0')) { /* no match */
|
if (dummy == 0 && mi->dummy) { /* no match */
|
||||||
xfree (mi);
|
xfree (mi);
|
||||||
mi = NULL;
|
mi = NULL;
|
||||||
xu_ptr_ungrab();
|
xu_ptr_ungrab();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user