# HG changeset patch # User Gerd Moellmann # Date 1001439769 0 # Node ID 0e0c30478fe3b756b0b491f1ba8bea3ee6197065 # Parent cecec2db43460f0c825d7216c5fdd2b36f58262d (x_kill_gs_process): Recognize if someone has cleared the image cache under us. diff -r cecec2db4346 -r 0e0c30478fe3 src/xfns.c --- 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);