Mercurial > emacs
changeset 39442:0e0c30478fe3
(x_kill_gs_process): Recognize if someone has cleared
the image cache under us.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Tue, 25 Sep 2001 17:42:49 +0000 |
parents | cecec2db4346 |
children | b6e7a04b7eeb |
files | src/xfns.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xfns.c Tue Sep 25 13:31:20 2001 +0000 +++ b/src/xfns.c Tue Sep 25 17:42:49 2001 +0000 @@ -10117,9 +10117,13 @@ if (c->images[i]->pixmap == pixmap) break; + /* Should someone in between have cleared the image cache, for + instance, give up. */ + if (i == c->used) + return; + /* Kill the GS process. We should have found PIXMAP in the image cache and its image should contain a process object. */ - xassert (i < c->used); img = c->images[i]; xassert (PROCESSP (img->data.lisp_val)); Fkill_process (img->data.lisp_val, Qnil);