Mercurial > emacs
changeset 70677:89c31b218b28
(handle_one_xevent): Check that f is not NULL before
calling x_kill_gs_process.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Tue, 16 May 2006 10:54:48 +0000 |
parents | 94777c0d5d77 |
children | a561e5346aa8 |
files | src/xterm.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Tue May 16 10:54:37 2006 +0000 +++ b/src/xterm.c Tue May 16 10:54:48 2006 +0000 @@ -5821,6 +5821,8 @@ images, only, which should have 1 page. */ Pixmap pixmap = (Pixmap) event.xclient.data.l[1]; f = x_window_to_frame (dpyinfo, event.xclient.window); + if (!f) + goto OTHER; x_kill_gs_process (pixmap, f); expose_frame (f, 0, 0, 0, 0); goto done; @@ -5839,10 +5841,8 @@ #endif /* USE_TOOLKIT_SCROLL_BARS */ f = x_any_window_to_frame (dpyinfo, event.xclient.window); - if (!f) goto OTHER; - if (x_handle_dnd_message (f, &event.xclient, dpyinfo, &inev.ie)) *finish = X_EVENT_DROP; }