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_pattern.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_pattern.c')
-rw-r--r-- | pdf/pdf_pattern.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pdf/pdf_pattern.c b/pdf/pdf_pattern.c index da890079..d6ce5021 100644 --- a/pdf/pdf_pattern.c +++ b/pdf/pdf_pattern.c @@ -14,8 +14,10 @@ pdf_drop_pattern(fz_context *ctx, pdf_pattern *pat) } static void -pdf_free_pattern_imp(fz_context *ctx, pdf_pattern *pat) +pdf_free_pattern_imp(fz_context *ctx, fz_storable *pat_) { + pdf_pattern *pat = (pdf_pattern *)pat_; + if (pat->resources) fz_drop_obj(pat->resources); if (pat->contents) |