diff options
-rw-r--r-- | source/fitz/store.c | 4 | ||||
-rw-r--r-- | source/pdf/pdf-object.c | 2 |
2 files changed, 0 insertions, 6 deletions
diff --git a/source/fitz/store.c b/source/fitz/store.c index f8feb591..cad027bc 100644 --- a/source/fitz/store.c +++ b/source/fitz/store.c @@ -60,8 +60,6 @@ fz_keep_storable(fz_context *ctx, const fz_storable *sc) * sanely throughout the code. */ fz_storable *s = (fz_storable *)sc; - if (s && s->refs > 0) - (void)Memento_takeRef(s); return fz_keep_imp(ctx, s, &s->refs); } @@ -79,8 +77,6 @@ fz_drop_storable(fz_context *ctx, const fz_storable *sc) this method. So we can simply drop the storable object itself without any operations on the fz_store. */ - if (s && s->refs > 0) - (void)Memento_dropRef(s); if (fz_drop_imp(ctx, s, &s->refs)) s->drop(ctx, s); } diff --git a/source/pdf/pdf-object.c b/source/pdf/pdf-object.c index 10eb6690..b4e33f3c 100644 --- a/source/pdf/pdf-object.c +++ b/source/pdf/pdf-object.c @@ -203,7 +203,6 @@ pdf_keep_obj(fz_context *ctx, pdf_obj *obj) { if (obj >= PDF_OBJ__LIMIT) { - (void)Memento_takeRef(obj); (void)fz_keep_imp16(ctx, obj, &obj->refs); } return obj; @@ -1723,7 +1722,6 @@ pdf_drop_obj(fz_context *ctx, pdf_obj *obj) { if (obj >= PDF_OBJ__LIMIT) { - (void)Memento_dropRef(obj); if (fz_drop_imp16(ctx, obj, &obj->refs)) { if (obj->kind == PDF_ARRAY) |