mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Fix regression from r1.107 (lost a return); kettenis@ pointed out the high
potential for a use-after-free (true!) where kn@ ran into the regression using an app that actually exercised the XGrabPointer() failure path.
This commit is contained in:
parent
fdb841c3b0
commit
6131e36f8a
1
menu.c
1
menu.c
@ -129,6 +129,7 @@ menu_filter(struct screen_ctx *sc, struct menu_q *menuq, const char *prompt,
|
|||||||
CurrentTime) != GrabSuccess) {
|
CurrentTime) != GrabSuccess) {
|
||||||
XftDrawDestroy(mc.xftdraw);
|
XftDrawDestroy(mc.xftdraw);
|
||||||
XDestroyWindow(X_Dpy, mc.win);
|
XDestroyWindow(X_Dpy, mc.win);
|
||||||
|
return(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
XGetInputFocus(X_Dpy, &focuswin, &focusrevert);
|
XGetInputFocus(X_Dpy, &focuswin, &focusrevert);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user