diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-08-12 14:17:15 +0000 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-08-12 14:17:15 +0000 |
commit | 89365154d5cf23ed7cce262dbf799993899321c2 (patch) | |
tree | a8cb2124089d7d6c5b9ca7ed952fb7f6d2b8b11b /fitz/res_pixmap.c | |
parent | 178c9fab191dd9f8c682eb0e8e4f54d9ba2c9923 (diff) | |
download | mupdf-89365154d5cf23ed7cce262dbf799993899321c2.tar.xz |
Remove pdf_image struct -- load images directly into fz_pixmaps instead.
Diffstat (limited to 'fitz/res_pixmap.c')
-rw-r--r-- | fitz/res_pixmap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fitz/res_pixmap.c b/fitz/res_pixmap.c index 4599fb0c..652d0426 100644 --- a/fitz/res_pixmap.c +++ b/fitz/res_pixmap.c @@ -11,6 +11,7 @@ fz_newpixmap(fz_colorspace *colorspace, int x, int y, int w, int h) pix->y = y; pix->w = w; pix->h = h; + pix->mask = nil; pix->colorspace = nil; pix->n = 1; @@ -43,6 +44,8 @@ fz_droppixmap(fz_pixmap *pix) { if (pix && --pix->refs == 0) { + if (pix->mask) + fz_droppixmap(pix->mask); if (pix->colorspace) fz_dropcolorspace(pix->colorspace); fz_free(pix->samples); |