# HG changeset patch # User Chong Yidong # Date 1229146760 0 # Node ID 0941c26336f4e5f7290063a4bf26d138b16c5ba0 # Parent 07fabb2ead9b3b16c8eadc7a56e00f62a8c2d277 Update commentary. diff -r 07fabb2ead9b -r 0941c26336f4 src/xfaces.c --- a/src/xfaces.c Sat Dec 13 04:20:11 2008 +0000 +++ b/src/xfaces.c Sat Dec 13 05:39:20 2008 +0000 @@ -849,8 +849,10 @@ /* Make the image cache. */ if (FRAME_WINDOW_P (f)) { + /* We initialize the image cache when creating the first frame + on a terminal, and not during terminal creation. This way, + `x-open-connection' on a tty won't create an image cache. */ if (FRAME_IMAGE_CACHE (f) == NULL) - /* Is that ever possible?? --Stef */ FRAME_IMAGE_CACHE (f) = make_image_cache (); ++FRAME_IMAGE_CACHE (f)->refcount; }