summaryrefslogtreecommitdiff
path: root/source/fitz/load-gif.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/load-gif.c')
-rw-r--r--source/fitz/load-gif.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/fitz/load-gif.c b/source/fitz/load-gif.c
index cc87ff84..25a37e3f 100644
--- a/source/fitz/load-gif.c
+++ b/source/fitz/load-gif.c
@@ -564,8 +564,7 @@ fz_load_gif_info(fz_context *ctx, const unsigned char *p, size_t total, int *wp,
struct info gif;
gif_read_image(ctx, &gif, p, total, 1);
-
- *cspacep = fz_device_rgb(ctx);
+ *cspacep = fz_keep_colorspace(ctx, fz_device_rgb(ctx));
*wp = gif.width;
*hp = gif.height;
*xresp = gif.xres;