From 3031a2480fe775df825de6674495d01ae2607d93 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Thu, 15 Dec 2011 18:39:05 +0000 Subject: Fix warnings/errors on unix builds. Fix warnings/errors thrown up by the last few commits (which were only tested on windows). --- pdf/pdf_pattern.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pdf/pdf_pattern.c') 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) -- cgit v1.2.3