Merge from savannah/emacs-30
8350ebd22e
Fix bug#719298f96e0064f
; Change `imap-shell-host` docstring to mention SSH
This commit is contained in:
commit
df26519500
4 changed files with 15 additions and 15 deletions
|
@ -228,7 +228,7 @@ See also `imap-log'."
|
|||
:type 'boolean)
|
||||
|
||||
(defcustom imap-shell-host "gateway"
|
||||
"Hostname of rlogin proxy."
|
||||
"Hostname of SSH proxy."
|
||||
:type 'string)
|
||||
|
||||
(defcustom imap-default-user (user-login-name)
|
||||
|
|
|
@ -3653,7 +3653,7 @@ extern void x_kill_gs_process (Pixmap, struct frame *);
|
|||
extern Lisp_Object image_find_image_file (Lisp_Object);
|
||||
|
||||
struct image_cache *make_image_cache (void);
|
||||
void free_image_cache (struct frame *);
|
||||
extern void free_image_cache (struct frame *);
|
||||
void clear_image_caches (Lisp_Object);
|
||||
void mark_image_cache (struct image_cache *);
|
||||
void image_prune_animation_caches (bool);
|
||||
|
|
21
src/image.c
21
src/image.c
|
@ -2304,23 +2304,18 @@ void
|
|||
free_image_cache (struct frame *f)
|
||||
{
|
||||
struct image_cache *c = FRAME_IMAGE_CACHE (f);
|
||||
if (c)
|
||||
{
|
||||
ptrdiff_t i;
|
||||
ptrdiff_t i;
|
||||
|
||||
/* Cache should not be referenced by any frame when freed. */
|
||||
eassert (c->refcount == 0);
|
||||
/* Cache should not be referenced by any frame when freed. */
|
||||
eassert (c->refcount == 0);
|
||||
|
||||
for (i = 0; i < c->used; ++i)
|
||||
free_image (f, c->images[i]);
|
||||
xfree (c->images);
|
||||
xfree (c->buckets);
|
||||
xfree (c);
|
||||
FRAME_IMAGE_CACHE (f) = NULL;
|
||||
}
|
||||
for (i = 0; i < c->used; ++i)
|
||||
free_image (f, c->images[i]);
|
||||
xfree (c->images);
|
||||
xfree (c->buckets);
|
||||
xfree (c);
|
||||
}
|
||||
|
||||
|
||||
/* Clear image cache of frame F. FILTER=t means free all images.
|
||||
FILTER=nil means clear only images that haven't been
|
||||
displayed for some time.
|
||||
|
|
|
@ -712,6 +712,11 @@ free_frame_faces (struct frame *f)
|
|||
--image_cache->refcount;
|
||||
if (image_cache->refcount == 0)
|
||||
free_image_cache (f);
|
||||
|
||||
/* The `image_cache' field must be emptied, in case references
|
||||
to this dead frame should remain and be scanned by GC.
|
||||
(bug#71929) */
|
||||
FRAME_IMAGE_CACHE (f) = NULL;
|
||||
}
|
||||
}
|
||||
#endif /* HAVE_WINDOW_SYSTEM */
|
||||
|
|
Loading…
Add table
Reference in a new issue