diff options
author | Tor Andersson <tor@ghostscript.com> | 2008-03-21 01:35:23 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2008-03-21 01:35:23 +0100 |
commit | 65e3374a2415399ded4624326a01bb9dfa77fa9e (patch) | |
tree | 04ff2fcf0acdb49626fe543489b9c19ed1a869e8 | |
parent | 5d21225f43d423f5f03244f398c14aa5ac325e58 (diff) | |
download | mupdf-65e3374a2415399ded4624326a01bb9dfa77fa9e.tar.xz |
Fixed bug concerning uninitialized refcounting for images.
-rw-r--r-- | mupdf/pdf_image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mupdf/pdf_image.c b/mupdf/pdf_image.c index 5ab0d624..b6d7327a 100644 --- a/mupdf/pdf_image.c +++ b/mupdf/pdf_image.c @@ -32,6 +32,7 @@ pdf_loadinlineimage(pdf_image **imgp, pdf_xref *xref, pdf_logimage("load inline image %p {\n", img); + img->super.refs = 1; img->super.loadtile = pdf_loadtile; img->super.drop = pdf_dropimage; img->super.n = 0; @@ -396,6 +397,7 @@ pdf_loadimage(pdf_image **imgp, pdf_xref *xref, fz_obj *dict, fz_obj *ref) * Create image object */ + img->super.refs = 1; img->super.loadtile = pdf_loadtile; img->super.drop = pdf_dropimage; img->super.cs = cs; |