52 | 1.79G | } Unexecuted instantiation: zpdfops.c:pdfi_countup_impl ghostpdf.c:pdfi_countup_impl Line | Count | Source | 39 | 37.1k | { | 40 | 37.1k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 37.1k | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 37.1k | } |
pdf_dict.c:pdfi_countup_impl Line | Count | Source | 39 | 440M | { | 40 | 440M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 2.37M | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 2.37M | return; | 47 | 2.37M | } | 48 | 437M | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 437M | } |
pdf_array.c:pdfi_countup_impl Line | Count | Source | 39 | 499M | { | 40 | 499M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 774k | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 774k | return; | 47 | 774k | } | 48 | 498M | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 498M | } |
pdf_xref.c:pdfi_countup_impl Line | Count | Source | 39 | 42.8k | { | 40 | 42.8k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 42.8k | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 42.8k | } |
Unexecuted instantiation: pdf_int.c:pdfi_countup_impl Unexecuted instantiation: pdf_file.c:pdfi_countup_impl Unexecuted instantiation: pdf_path.c:pdfi_countup_impl pdf_colour.c:pdfi_countup_impl Line | Count | Source | 39 | 810k | { | 40 | 810k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 810k | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 810k | } |
pdf_pattern.c:pdfi_countup_impl Line | Count | Source | 39 | 61.2k | { | 40 | 61.2k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 5.24k | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 5.24k | return; | 47 | 5.24k | } | 48 | 55.9k | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 55.9k | } |
pdf_gstate.c:pdfi_countup_impl Line | Count | Source | 39 | 68.0M | { | 40 | 68.0M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 16.6M | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 16.6M | return; | 47 | 16.6M | } | 48 | 51.3M | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 51.3M | } |
pdf_stack.c:pdfi_countup_impl Line | Count | Source | 39 | 656M | { | 40 | 656M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 108M | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 108M | return; | 47 | 108M | } | 48 | 548M | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 548M | } |
pdf_image.c:pdfi_countup_impl Line | Count | Source | 39 | 892k | { | 40 | 892k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 8 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 8 | return; | 47 | 8 | } | 48 | 892k | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 892k | } |
pdf_page.c:pdfi_countup_impl Line | Count | Source | 39 | 421k | { | 40 | 421k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 421k | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 421k | } |
pdf_annot.c:pdfi_countup_impl Line | Count | Source | 39 | 305k | { | 40 | 305k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 305k | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 305k | } |
pdf_mark.c:pdfi_countup_impl Line | Count | Source | 39 | 8.17k | { | 40 | 8.17k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 8.17k | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 8.17k | } |
pdf_font.c:pdfi_countup_impl Line | Count | Source | 39 | 47.7M | { | 40 | 47.7M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 47.7M | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 47.7M | } |
pdf_font0.c:pdfi_countup_impl Line | Count | Source | 39 | 18.0k | { | 40 | 18.0k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 18.0k | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 18.0k | } |
pdf_font1.c:pdfi_countup_impl Line | Count | Source | 39 | 83.9M | { | 40 | 83.9M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 4.65M | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 4.65M | return; | 47 | 4.65M | } | 48 | 79.3M | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 79.3M | } |
pdf_font1C.c:pdfi_countup_impl Line | Count | Source | 39 | 2.37M | { | 40 | 2.37M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 3.34k | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 3.34k | return; | 47 | 3.34k | } | 48 | 2.37M | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 2.37M | } |
pdf_fontps.c:pdfi_countup_impl Line | Count | Source | 39 | 88.3M | { | 40 | 88.3M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 88.3M | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 88.3M | } |
pdf_font3.c:pdfi_countup_impl Line | Count | Source | 39 | 5.10k | { | 40 | 5.10k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 5.10k | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 5.10k | } |
pdf_fontTT.c:pdfi_countup_impl Line | Count | Source | 39 | 5.31M | { | 40 | 5.31M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 12.9k | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 12.9k | return; | 47 | 12.9k | } | 48 | 5.29M | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 5.29M | } |
pdf_font11.c:pdfi_countup_impl Line | Count | Source | 39 | 50.3k | { | 40 | 50.3k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 50.3k | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 50.3k | } |
pdf_cmap.c:pdfi_countup_impl Line | Count | Source | 39 | 576 | { | 40 | 576 | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 576 | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 576 | } |
pdf_fmap.c:pdfi_countup_impl Line | Count | Source | 39 | 112k | { | 40 | 112k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 112k | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 112k | } |
pdf_text.c:pdfi_countup_impl Line | Count | Source | 39 | 5.00M | { | 40 | 5.00M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 5.00M | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 5.00M | } |
pdf_shading.c:pdfi_countup_impl Line | Count | Source | 39 | 298k | { | 40 | 298k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 298k | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 298k | } |
Unexecuted instantiation: pdf_func.c:pdfi_countup_impl Unexecuted instantiation: pdf_trans.c:pdfi_countup_impl Unexecuted instantiation: pdf_device.c:pdfi_countup_impl Unexecuted instantiation: pdf_misc.c:pdfi_countup_impl pdf_optcontent.c:pdfi_countup_impl Line | Count | Source | 39 | 1.00M | { | 40 | 1.00M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 2 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 2 | return; | 47 | 2 | } | 48 | 1.00M | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 1.00M | } |
pdf_check.c:pdfi_countup_impl Line | Count | Source | 39 | 26.2k | { | 40 | 26.2k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 26.2k | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 26.2k | } |
pdf_sec.c:pdfi_countup_impl Line | Count | Source | 39 | 28.3k | { | 40 | 28.3k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 28.3k | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 28.3k | } |
Unexecuted instantiation: pdf_utf8.c:pdfi_countup_impl pdf_deref.c:pdfi_countup_impl Line | Count | Source | 39 | 8.75M | { | 40 | 8.75M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 458 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 458 | return; | 47 | 458 | } | 48 | 8.75M | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 8.75M | } |
pdf_repair.c:pdfi_countup_impl Line | Count | Source | 39 | 207k | { | 40 | 207k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 207k | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 207k | } |
pdf_obj.c:pdfi_countup_impl Line | Count | Source | 39 | 2.86M | { | 40 | 2.86M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 2.86M | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 2.86M | } |
pdf_doc.c:pdfi_countup_impl Line | Count | Source | 39 | 1.23M | { | 40 | 1.23M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 2.25k | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 2.25k | return; | 47 | 2.25k | } | 48 | 1.23M | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 1.23M | } |
pdf_fapi.c:pdfi_countup_impl Line | Count | Source | 39 | 18.1M | { | 40 | 18.1M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 0 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 0 | return; | 47 | 0 | } | 48 | 18.1M | o->refcnt++; | 49 | | #if REFCNT_DEBUG | 50 | | outprintf(ctx->memory, "Incrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 51 | | #endif | 52 | 18.1M | } |
|
101 | 785M | } zpdfops.c:pdfi_countdown_impl Line | Count | Source | 55 | 2.30M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 2.30M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 468k | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 1.83M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 1.83M | if (o->refcnt != 0) | 78 | 1.72M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 105k | pdfi_free_object(o); | 101 | 105k | } |
ghostpdf.c:pdfi_countdown_impl Line | Count | Source | 55 | 2.45M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 2.45M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 290k | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 2.16M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 2.16M | if (o->refcnt != 0) | 78 | 853k | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 1.31M | pdfi_free_object(o); | 101 | 1.31M | } |
pdf_dict.c:pdfi_countdown_impl Line | Count | Source | 55 | 236M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 236M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 1.18M | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 235M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 235M | if (o->refcnt != 0) | 78 | 14.8M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 220M | pdfi_free_object(o); | 101 | 220M | } |
pdf_array.c:pdfi_countdown_impl Line | Count | Source | 55 | 351M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 351M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 150M | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 200M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 200M | if (o->refcnt != 0) | 78 | 55.0M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 145M | pdfi_free_object(o); | 101 | 145M | } |
pdf_xref.c:pdfi_countdown_impl Line | Count | Source | 55 | 80.7k | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 80.7k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 12.4k | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 68.3k | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 68.3k | if (o->refcnt != 0) | 78 | 53.6k | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 14.6k | pdfi_free_object(o); | 101 | 14.6k | } |
pdf_int.c:pdfi_countdown_impl Line | Count | Source | 55 | 32.5M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 32.5M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 32.5M | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 69.7k | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 69.7k | if (o->refcnt != 0) | 78 | 0 | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 69.7k | pdfi_free_object(o); | 101 | 69.7k | } |
pdf_file.c:pdfi_countdown_impl Line | Count | Source | 55 | 20.7M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 20.7M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 18.4M | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 2.32M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 2.32M | if (o->refcnt != 0) | 78 | 2.32M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 0 | pdfi_free_object(o); | 101 | 0 | } |
Unexecuted instantiation: pdf_path.c:pdfi_countdown_impl pdf_colour.c:pdfi_countdown_impl Line | Count | Source | 55 | 4.23M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 4.23M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 1.77M | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 2.46M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 2.46M | if (o->refcnt != 0) | 78 | 1.83M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 631k | pdfi_free_object(o); | 101 | 631k | } |
pdf_pattern.c:pdfi_countdown_impl Line | Count | Source | 55 | 280k | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 280k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 103k | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 177k | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 177k | if (o->refcnt != 0) | 78 | 177k | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 0 | pdfi_free_object(o); | 101 | 0 | } |
pdf_gstate.c:pdfi_countdown_impl Line | Count | Source | 55 | 103M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 103M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 50.7M | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 52.6M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 52.6M | if (o->refcnt != 0) | 78 | 50.9M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 1.66M | pdfi_free_object(o); | 101 | 1.66M | } |
pdf_stack.c:pdfi_countdown_impl Line | Count | Source | 55 | 656M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 656M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 108M | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 548M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 548M | if (o->refcnt != 0) | 78 | 243M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 304M | pdfi_free_object(o); | 101 | 304M | } |
pdf_image.c:pdfi_countdown_impl Line | Count | Source | 55 | 3.51M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 3.51M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 885k | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 2.62M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 2.62M | if (o->refcnt != 0) | 78 | 1.84M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 782k | pdfi_free_object(o); | 101 | 782k | } |
pdf_page.c:pdfi_countdown_impl Line | Count | Source | 55 | 1.98M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 1.98M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 301k | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 1.68M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 1.68M | if (o->refcnt != 0) | 78 | 1.68M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 1.10k | pdfi_free_object(o); | 101 | 1.10k | } |
pdf_annot.c:pdfi_countdown_impl Line | Count | Source | 55 | 4.02M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 4.02M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 1.60M | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 2.42M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 2.42M | if (o->refcnt != 0) | 78 | 2.41M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 7.42k | pdfi_free_object(o); | 101 | 7.42k | } |
pdf_mark.c:pdfi_countdown_impl Line | Count | Source | 55 | 87.0k | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 87.0k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 39.7k | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 47.2k | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 47.2k | if (o->refcnt != 0) | 78 | 37.5k | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 9.72k | pdfi_free_object(o); | 101 | 9.72k | } |
pdf_font.c:pdfi_countdown_impl Line | Count | Source | 55 | 269M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 269M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 13.7M | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 255M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 255M | if (o->refcnt != 0) | 78 | 248M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 7.09M | pdfi_free_object(o); | 101 | 7.09M | } |
pdf_font0.c:pdfi_countdown_impl Line | Count | Source | 55 | 1.38M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 1.38M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 326k | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 1.05M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 1.05M | if (o->refcnt != 0) | 78 | 955k | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 102k | pdfi_free_object(o); | 101 | 102k | } |
pdf_font1.c:pdfi_countdown_impl Line | Count | Source | 55 | 273M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 273M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 10.3M | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 263M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 263M | if (o->refcnt != 0) | 78 | 189M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 73.8M | pdfi_free_object(o); | 101 | 73.8M | } |
pdf_font1C.c:pdfi_countdown_impl Line | Count | Source | 55 | 4.05M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 4.05M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 511k | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 3.54M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 3.54M | if (o->refcnt != 0) | 78 | 2.07M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 1.47M | pdfi_free_object(o); | 101 | 1.47M | } |
pdf_fontps.c:pdfi_countdown_impl Line | Count | Source | 55 | 88.3M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 88.3M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 375k | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 87.9M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 87.9M | if (o->refcnt != 0) | 78 | 87.8M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 58.0k | pdfi_free_object(o); | 101 | 58.0k | } |
pdf_font3.c:pdfi_countdown_impl Line | Count | Source | 55 | 186k | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 186k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 49.0k | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 137k | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 137k | if (o->refcnt != 0) | 78 | 129k | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 8.36k | pdfi_free_object(o); | 101 | 8.36k | } |
pdf_fontTT.c:pdfi_countdown_impl Line | Count | Source | 55 | 13.4M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 13.4M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 2.14M | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 11.3M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 11.3M | if (o->refcnt != 0) | 78 | 9.13M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 2.16M | pdfi_free_object(o); | 101 | 2.16M | } |
pdf_font11.c:pdfi_countdown_impl Line | Count | Source | 55 | 307k | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 307k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 155k | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 151k | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 151k | if (o->refcnt != 0) | 78 | 71.0k | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 80.8k | pdfi_free_object(o); | 101 | 80.8k | } |
pdf_cmap.c:pdfi_countdown_impl Line | Count | Source | 55 | 81.3k | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 81.3k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 80.5k | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 854 | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 854 | if (o->refcnt != 0) | 78 | 278 | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 576 | pdfi_free_object(o); | 101 | 576 | } |
pdf_fmap.c:pdfi_countdown_impl Line | Count | Source | 55 | 3.31M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 3.31M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 3.21M | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 96.2k | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 96.2k | if (o->refcnt != 0) | 78 | 96.2k | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 0 | pdfi_free_object(o); | 101 | 0 | } |
pdf_text.c:pdfi_countdown_impl Line | Count | Source | 55 | 39.8M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 39.8M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 2.65M | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 37.2M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 37.2M | if (o->refcnt != 0) | 78 | 32.2M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 5.00M | pdfi_free_object(o); | 101 | 5.00M | } |
pdf_shading.c:pdfi_countdown_impl Line | Count | Source | 55 | 774k | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 774k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 221k | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 553k | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 553k | if (o->refcnt != 0) | 78 | 254k | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 298k | pdfi_free_object(o); | 101 | 298k | } |
pdf_func.c:pdfi_countdown_impl Line | Count | Source | 55 | 148k | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 148k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 28 | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 148k | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 148k | if (o->refcnt != 0) | 78 | 148k | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 0 | pdfi_free_object(o); | 101 | 0 | } |
pdf_trans.c:pdfi_countdown_impl Line | Count | Source | 55 | 151k | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 151k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 71.8k | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 79.3k | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 79.3k | if (o->refcnt != 0) | 78 | 79.3k | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 0 | pdfi_free_object(o); | 101 | 0 | } |
Unexecuted instantiation: pdf_device.c:pdfi_countdown_impl Unexecuted instantiation: pdf_misc.c:pdfi_countdown_impl pdf_optcontent.c:pdfi_countdown_impl Line | Count | Source | 55 | 2.94M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 2.94M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 1.51M | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 1.43M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 1.43M | if (o->refcnt != 0) | 78 | 426k | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 1.00M | pdfi_free_object(o); | 101 | 1.00M | } |
pdf_check.c:pdfi_countdown_impl Line | Count | Source | 55 | 12.4M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 12.4M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 6.38M | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 6.09M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 6.09M | if (o->refcnt != 0) | 78 | 6.07M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 26.2k | pdfi_free_object(o); | 101 | 26.2k | } |
pdf_sec.c:pdfi_countdown_impl Line | Count | Source | 55 | 34.5k | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 34.5k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 3.78k | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 30.7k | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 30.7k | if (o->refcnt != 0) | 78 | 17.0k | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 13.7k | pdfi_free_object(o); | 101 | 13.7k | } |
Unexecuted instantiation: pdf_utf8.c:pdfi_countdown_impl pdf_deref.c:pdfi_countdown_impl Line | Count | Source | 55 | 3.19M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 3.19M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 55.9k | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 3.13M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 3.13M | if (o->refcnt != 0) | 78 | 2.92M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 210k | pdfi_free_object(o); | 101 | 210k | } |
pdf_repair.c:pdfi_countdown_impl Line | Count | Source | 55 | 3.02M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 3.02M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 1.52M | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 1.50M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 1.50M | if (o->refcnt != 0) | 78 | 1.40M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 95.5k | pdfi_free_object(o); | 101 | 95.5k | } |
pdf_obj.c:pdfi_countdown_impl Line | Count | Source | 55 | 1.09M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 1.09M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 23.8k | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 1.07M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 1.07M | if (o->refcnt != 0) | 78 | 398k | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 676k | pdfi_free_object(o); | 101 | 676k | } |
pdf_doc.c:pdfi_countdown_impl Line | Count | Source | 55 | 29.1M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 29.1M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 16.5M | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 12.5M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 12.5M | if (o->refcnt != 0) | 78 | 12.2M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 302k | pdfi_free_object(o); | 101 | 302k | } |
pdf_fapi.c:pdfi_countdown_impl Line | Count | Source | 55 | 59.4M | { | 56 | | #if defined(DEBUG) || REFCNT_DEBUG | 57 | | pdf_context *ctx; | 58 | | #endif | 59 | | | 60 | | /* A 'low' pointer value indicates a type that is not an | 61 | | * actual object (typically keyword). This includes the | 62 | | * NULL case. Nothing to free in that case. */ | 63 | 59.4M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 144 | return; | 65 | | | 66 | | #if defined(DEBUG) || REFCNT_DEBUG | 67 | | ctx = (pdf_context *)o->ctx; | 68 | | #endif | 69 | | #ifdef DEBUG | 70 | | if (o->refcnt == 0) | 71 | | emprintf(OBJ_MEMORY(o), "Decrementing object with refcount at 0!\n"); | 72 | | #endif | 73 | 59.4M | o->refcnt--; | 74 | | #if REFCNT_DEBUG | 75 | | outprintf(ctx->memory, "Decrementing reference count of object %d, UID %lu, to %d\n", o->object_num, o->UID, o->refcnt); | 76 | | #endif | 77 | 59.4M | if (o->refcnt != 0) | 78 | 41.3M | return; | 79 | | #if REFCNT_DEBUG | 80 | | if (ctx != NULL && ctx->cache_entries != 0) { | 81 | | pdf_obj_cache_entry *entry = ctx->cache_LRU, *next; | 82 | | | 83 | | while(entry) { | 84 | | next = entry->next; | 85 | | if (entry->o->object_num != 0 && entry->o->object_num == o->object_num) | 86 | | outprintf(ctx->memory, "Freeing object %d, UID %lu, but there is still a cache entry!\n", o->object_num, o->UID); | 87 | | entry = next; | 88 | | } | 89 | | } | 90 | | outprintf(ctx->memory, "Freeing object %d, UID %lu\n", o->object_num, o->UID); | 91 | | #endif | 92 | | #ifdef DEBUG | 93 | | if (ctx->xref_table != NULL && o->object_num > 0 && | 94 | | o->object_num < ctx->xref_table->xref_size && | 95 | | ctx->xref_table->xref[o->object_num].cache != NULL && | 96 | | ctx->xref_table->xref[o->object_num].cache->o == o) { | 97 | | outprintf(ctx->memory, "Freeing object %d while it is still in the object cache!\n", o->object_num); | 98 | | } | 99 | | #endif | 100 | 18.1M | pdfi_free_object(o); | 101 | 18.1M | } |
|