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:
okan 2019-08-12 00:52:36 +00:00
parent fdb841c3b0
commit 6131e36f8a

1
menu.c
View File

@ -129,6 +129,7 @@ menu_filter(struct screen_ctx *sc, struct menu_q *menuq, const char *prompt,
CurrentTime) != GrabSuccess) {
XftDrawDestroy(mc.xftdraw);
XDestroyWindow(X_Dpy, mc.win);
return(NULL);
}
XGetInputFocus(X_Dpy, &focuswin, &focusrevert);