summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-object.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2014-02-28 15:22:43 +0000
committerRobin Watts <robin.watts@artifex.com>2014-02-28 15:24:04 +0000
commit3341fa7ecdbf87b630c054775b076784806393ed (patch)
tree578ca15d9f11a96af6627fe94f9b7622b03650c0 /source/pdf/pdf-object.c
parent1ed27a8243b5335040a4d9d9fac9d239a13b0602 (diff)
downloadmupdf-3341fa7ecdbf87b630c054775b076784806393ed.tar.xz
Ensure that pdf_array_delete works even with indirected objects.
Add a RESOLVE(obj) call in line with other such functions.
Diffstat (limited to 'source/pdf/pdf-object.c')
-rw-r--r--source/pdf/pdf-object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/pdf/pdf-object.c b/source/pdf/pdf-object.c
index 16fab07c..344d5087 100644
--- a/source/pdf/pdf-object.c
+++ b/source/pdf/pdf-object.c
@@ -661,6 +661,8 @@ pdf_array_insert_drop(pdf_obj *obj, pdf_obj *item, int i)
void
pdf_array_delete(pdf_obj *obj, int i)
{
+ RESOLVE(obj);
+
if (!obj)
return; /* Can't warn :( */
if (obj->kind != PDF_ARRAY)