merge from trunk
This commit is contained in:
commit
c20b50ee18
2 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-08-19 Dmitry Antipov <dmantipov@yandex.ru>
|
||||
|
||||
* image.c (imagemagick_create_cache, imagemagick_get_animation_cache)
|
||||
(imagemagick_prune_animation_cache): Now static.
|
||||
|
||||
2013-08-18 Lars Magne Ingebrigtsen <larsi@gnus.org>
|
||||
|
||||
* image.c (imagemagick_get_animation_cache): Don't segfault when
|
||||
|
|
10
src/image.c
10
src/image.c
|
@ -7887,18 +7887,18 @@ struct animation_cache
|
|||
|
||||
static struct animation_cache *animation_cache = NULL;
|
||||
|
||||
struct animation_cache *
|
||||
static struct animation_cache *
|
||||
imagemagick_create_cache (char *signature)
|
||||
{
|
||||
struct animation_cache *cache = xzalloc (sizeof (struct animation_cache));
|
||||
struct animation_cache *cache = xzalloc (sizeof *cache);
|
||||
cache->signature = signature;
|
||||
cache->update_time = current_emacs_time ();
|
||||
return cache;
|
||||
}
|
||||
|
||||
/* Discard cached images that haven't been used for a minute. */
|
||||
void
|
||||
imagemagick_prune_animation_cache ()
|
||||
static void
|
||||
imagemagick_prune_animation_cache (void)
|
||||
{
|
||||
struct animation_cache *cache = animation_cache;
|
||||
struct animation_cache *prev = NULL;
|
||||
|
@ -7928,7 +7928,7 @@ imagemagick_prune_animation_cache ()
|
|||
}
|
||||
}
|
||||
|
||||
struct animation_cache *
|
||||
static struct animation_cache *
|
||||
imagemagick_get_animation_cache (MagickWand *wand)
|
||||
{
|
||||
char *signature = xstrdup (MagickGetImageSignature (wand));
|
||||
|
|
Loading…
Add table
Reference in a new issue