the image cache under us.
2001-09-25 Gerd Moellmann <gerd@gnu.org>
+ * xfns.c (x_kill_gs_process): Recognize if someone has cleared
+ the image cache under us.
+
* xdisp.c (display_mode_element): If the mode element is a symbol
with a string value, use that string's multibyteness for
displaying.
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);