diff options
author | Robin Watts <robin.watts@artifex.com> | 2014-02-28 15:22:43 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2014-02-28 15:24:04 +0000 |
commit | 3341fa7ecdbf87b630c054775b076784806393ed (patch) | |
tree | 578ca15d9f11a96af6627fe94f9b7622b03650c0 | |
parent | 1ed27a8243b5335040a4d9d9fac9d239a13b0602 (diff) | |
download | mupdf-3341fa7ecdbf87b630c054775b076784806393ed.tar.xz |
Ensure that pdf_array_delete works even with indirected objects.
Add a RESOLVE(obj) call in line with other such functions.
-rw-r--r-- | source/pdf/pdf-object.c | 2 |
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) |