summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-09-14 18:02:35 +0100
committerRobin Watts <robin.watts@artifex.com>2016-09-14 19:53:35 +0100
commitf66bcef797ad732c294ffc8168bbfe50e86ffca7 (patch)
tree94cef5817e7c8049d5b86ffd4d6cc88d39832475 /source/pdf
parentd096489bffad5da0975ed7ccc915310591caae69 (diff)
downloadmupdf-f66bcef797ad732c294ffc8168bbfe50e86ffca7.tar.xz
Don't report addRef/dropRef events to Memento twice.
We call Memento_addRef etc in fz_keep_impXX functions, so don't call them in the callers too.
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-object.c2
1 files changed, 0 insertions, 2 deletions
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)