diff options
Diffstat (limited to 'libXt/src/NextEvent.c')
-rw-r--r-- | libXt/src/NextEvent.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libXt/src/NextEvent.c b/libXt/src/NextEvent.c index 181d20e87..b1f7bc7e5 100644 --- a/libXt/src/NextEvent.c +++ b/libXt/src/NextEvent.c @@ -731,7 +731,14 @@ WaitLoop: #endif return dpy_no; } - goto WaitLoop; + if (block) + goto WaitLoop; + else { +#ifdef USE_POLL + XtStackFree ((XtPointer) wf.fdlist, fdlist); +#endif + return -1; + } } #define IeCallProc(ptr) \ |