emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master e2e232933c: Fix crash when loading Postscript images


From: Po Lu
Subject: master e2e232933c: Fix crash when loading Postscript images
Date: Sun, 29 May 2022 21:07:42 -0400 (EDT)

branch: master
commit e2e232933c6f944b1dda7c578425b34f1e160e7f
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix crash when loading Postscript images
    
    * src/xterm.c (handle_one_xevent): Catch errors around
    `x_kill_gs_process'.
---
 src/xterm.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/xterm.c b/src/xterm.c
index ab36c1681a..996e194926 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -15260,7 +15260,11 @@ handle_one_xevent (struct x_display_info *dpyinfo,
              goto OTHER;
 #ifndef USE_CAIRO
             Pixmap pixmap = (Pixmap) event->xclient.data.l[1];
+           /* FIXME: why does this sometimes generate a BadMatch
+              error?  */
+           x_catch_errors (dpyinfo->display);
             x_kill_gs_process (pixmap, f);
+           x_uncatch_errors ();
             expose_frame (f, 0, 0, 0, 0);
 #endif /* !USE_CAIRO */
            goto done;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]