summaryrefslogtreecommitdiff
path: root/source/fitz/pixmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/pixmap.c')
-rw-r--r--source/fitz/pixmap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/fitz/pixmap.c b/source/fitz/pixmap.c
index 93f8fed6..d3d8b847 100644
--- a/source/fitz/pixmap.c
+++ b/source/fitz/pixmap.c
@@ -148,6 +148,7 @@ fz_pixmap *fz_new_pixmap_from_pixmap(fz_context *ctx, fz_pixmap *pixmap, const f
subpix = fz_malloc_struct(ctx, fz_pixmap);
*subpix = *pixmap;
+ subpix->storable.refs = 1;
subpix->x = rect->x0;
subpix->y = rect->y0;
subpix->w = rect->x1 - rect->x0;