summaryrefslogtreecommitdiff
path: root/fitz/res_shade.c
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/res_shade.c')
-rw-r--r--fitz/res_shade.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fitz/res_shade.c b/fitz/res_shade.c
index 7faff3bf..b7617161 100644
--- a/fitz/res_shade.c
+++ b/fitz/res_shade.c
@@ -8,14 +8,14 @@ fz_keep_shade(fz_shade *shade)
}
void
-fz_drop_shade(fz_shade *shade)
+fz_drop_shade(fz_context *ctx, fz_shade *shade)
{
if (shade && --shade->refs == 0)
{
if (shade->colorspace)
- fz_drop_colorspace(shade->colorspace);
- fz_free(shade->mesh);
- fz_free(shade);
+ fz_drop_colorspace(ctx, shade->colorspace);
+ fz_free(ctx, shade->mesh);
+ fz_free(ctx, shade);
}
}