diff options
author | Robin Watts <robin.watts@artifex.com> | 2011-12-15 18:39:05 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2011-12-15 18:39:05 +0000 |
commit | 3031a2480fe775df825de6674495d01ae2607d93 (patch) | |
tree | 27f6c74c83f4e5b691808963ec2e9e2d6d9e0fba /pdf/pdf_xobject.c | |
parent | 0519485956749c2c84fd91e067f0b6cabd026ad7 (diff) | |
download | mupdf-3031a2480fe775df825de6674495d01ae2607d93.tar.xz |
Fix warnings/errors on unix builds.
Fix warnings/errors thrown up by the last few commits (which were
only tested on windows).
Diffstat (limited to 'pdf/pdf_xobject.c')
-rw-r--r-- | pdf/pdf_xobject.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pdf/pdf_xobject.c b/pdf/pdf_xobject.c index 913ded37..510860e3 100644 --- a/pdf/pdf_xobject.c +++ b/pdf/pdf_xobject.c @@ -14,8 +14,10 @@ pdf_drop_xobject(fz_context *ctx, pdf_xobject *xobj) } static void -pdf_free_xobject_imp(fz_context *ctx, pdf_xobject *xobj) +pdf_free_xobject_imp(fz_context *ctx, fz_storable *xobj_) { + pdf_xobject *xobj = (pdf_xobject *)xobj_; + if (xobj->colorspace) fz_drop_colorspace(ctx, xobj->colorspace); if (xobj->resources) |