diff options
Diffstat (limited to 'src/cnki_pdf.c')
-rw-r--r-- | src/cnki_pdf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cnki_pdf.c b/src/cnki_pdf.c index 6a7a317..dcf6d30 100644 --- a/src/cnki_pdf.c +++ b/src/cnki_pdf.c @@ -419,8 +419,14 @@ cnki_pdf(cnki_t **param) if ((*param)->stat > 1) printf("Deleting xref object\n"); + pdf_object_t *tmp; + + pdf_get_obj(&pdf, xref, &tmp); pdf_obj_del(&pdf, xref); + tmp->next = NULL; + pdf_obj_destroy(&tmp); + if ((*param)->stat > 0) printf("Deleted xref object\n"); } else { |