diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/path.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/fitz/path.c b/source/fitz/path.c index d5b662d2..c270ce57 100644 --- a/source/fitz/path.c +++ b/source/fitz/path.c @@ -81,8 +81,10 @@ fz_new_path(fz_context *ctx) } fz_path * -fz_keep_path(fz_context *ctx, fz_path *path) +fz_keep_path(fz_context *ctx, const fz_path *pathc) { + fz_path *path = (fz_path *)pathc; /* Explicit cast away of const */ + if (path == NULL) return NULL; if (path->refs == 1 && path->packed == FZ_PATH_UNPACKED) @@ -91,8 +93,10 @@ fz_keep_path(fz_context *ctx, fz_path *path) } void -fz_drop_path(fz_context *ctx, fz_path *path) +fz_drop_path(fz_context *ctx, const fz_path *pathc) { + fz_path *path = (fz_path *)pathc; /* Explicit cast away of const */ + if (fz_drop_imp8(ctx, path, &path->refs)) { if (path->packed != FZ_PATH_PACKED_FLAT) |