aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorJoakim Verona2013-08-15 07:41:16 +0200
committerJoakim Verona2013-08-15 07:41:16 +0200
commit31800c9173af4d2c445bb52b2c338a3f0bde5b12 (patch)
tree18ba130472110da57d198d680933c78dd2a8cb62 /src/image.c
parent0b15597dcec4aaa6c4f35138da2471f6dd4fb003 (diff)
parent9c25330708e49ddaeb71f16a65cdc1b51be2a27d (diff)
downloademacs-31800c9173af4d2c445bb52b2c338a3f0bde5b12.tar.gz
emacs-31800c9173af4d2c445bb52b2c338a3f0bde5b12.zip
merge from trunk
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/image.c b/src/image.c
index f71ba211d44..8d969a6f9c6 100644
--- a/src/image.c
+++ b/src/image.c
@@ -1360,14 +1360,12 @@ static void cache_image (struct frame *f, struct image *img);
1360struct image_cache * 1360struct image_cache *
1361make_image_cache (void) 1361make_image_cache (void)
1362{ 1362{
1363 struct image_cache *c = xzalloc (sizeof *c); 1363 struct image_cache *c = xmalloc (sizeof *c);
1364 int size; 1364
1365 1365 c->size = 50;
1366 size = 50; 1366 c->used = c->refcount = 0;
1367 c->images = xmalloc (size * sizeof *c->images); 1367 c->images = xmalloc (c->size * sizeof *c->images);
1368 c->size = size; 1368 c->buckets = xzalloc (IMAGE_CACHE_BUCKETS_SIZE * sizeof *c->buckets);
1369 size = IMAGE_CACHE_BUCKETS_SIZE * sizeof *c->buckets;
1370 c->buckets = xzalloc (size);
1371 return c; 1369 return c;
1372} 1370}
1373 1371