52 | 1.89G | } Unexecuted instantiation: zpdfops.c:pdfi_countup_impl ghostpdf.c:pdfi_countup_impl Line | Count | Source | 39 | 37.0k | { | 40 | 37.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 | 37.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 | 37.0k | } |
pdf_dict.c:pdfi_countup_impl Line | Count | Source | 39 | 473M | { | 40 | 473M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 2.40M | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 2.40M | return; | 47 | 2.40M | } | 48 | 471M | 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 | 471M | } |
pdf_array.c:pdfi_countup_impl Line | Count | Source | 39 | 540M | { | 40 | 540M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 775k | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 775k | return; | 47 | 775k | } | 48 | 539M | 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 | 539M | } |
pdf_xref.c:pdfi_countup_impl Line | Count | Source | 39 | 43.3k | { | 40 | 43.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 | 43.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 | 43.3k | } |
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 | 814k | { | 40 | 814k | 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 | 814k | 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 | 814k | } |
pdf_pattern.c:pdfi_countup_impl Line | Count | Source | 39 | 63.5k | { | 40 | 63.5k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 5.01k | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 5.01k | return; | 47 | 5.01k | } | 48 | 58.5k | 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 | 58.5k | } |
pdf_gstate.c:pdfi_countup_impl Line | Count | Source | 39 | 66.4M | { | 40 | 66.4M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 17.2M | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 17.2M | return; | 47 | 17.2M | } | 48 | 49.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 | 49.1M | } |
pdf_stack.c:pdfi_countup_impl Line | Count | Source | 39 | 664M | { | 40 | 664M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 110M | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 110M | return; | 47 | 110M | } | 48 | 554M | 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 | 554M | } |
pdf_image.c:pdfi_countup_impl Line | Count | Source | 39 | 889k | { | 40 | 889k | 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 | 889k | 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 | 889k | } |
pdf_page.c:pdfi_countup_impl Line | Count | Source | 39 | 414k | { | 40 | 414k | 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 | 414k | 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 | 414k | } |
pdf_annot.c:pdfi_countup_impl Line | Count | Source | 39 | 341k | { | 40 | 341k | 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 | 341k | 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 | 341k | } |
pdf_mark.c:pdfi_countup_impl Line | Count | Source | 39 | 30.2k | { | 40 | 30.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 | 30.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 | 30.2k | } |
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 | 17.9k | { | 40 | 17.9k | 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 | 17.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 | 17.9k | } |
pdf_font1.c:pdfi_countup_impl Line | Count | Source | 39 | 99.9M | { | 40 | 99.9M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 4.63M | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 4.63M | return; | 47 | 4.63M | } | 48 | 95.2M | 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 | 95.2M | } |
pdf_font1C.c:pdfi_countup_impl Line | Count | Source | 39 | 3.30M | { | 40 | 3.30M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 3.37k | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 3.37k | return; | 47 | 3.37k | } | 48 | 3.30M | 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 | 3.30M | } |
pdf_fontps.c:pdfi_countup_impl Line | Count | Source | 39 | 86.3M | { | 40 | 86.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 | 86.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 | 86.3M | } |
pdf_font3.c:pdfi_countup_impl Line | Count | Source | 39 | 5.18k | { | 40 | 5.18k | 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.18k | 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.18k | } |
pdf_fontTT.c:pdfi_countup_impl Line | Count | Source | 39 | 5.91M | { | 40 | 5.91M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 12.4k | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 12.4k | return; | 47 | 12.4k | } | 48 | 5.89M | 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.89M | } |
pdf_font11.c:pdfi_countup_impl Line | Count | Source | 39 | 50.0k | { | 40 | 50.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 | 50.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 | 50.0k | } |
pdf_cmap.c:pdfi_countup_impl Line | Count | Source | 39 | 558 | { | 40 | 558 | 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 | 558 | 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 | 558 | } |
pdf_fmap.c:pdfi_countup_impl Line | Count | Source | 39 | 109k | { | 40 | 109k | 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 | 109k | 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 | 109k | } |
pdf_text.c:pdfi_countup_impl Line | Count | Source | 39 | 4.97M | { | 40 | 4.97M | 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 | 4.97M | 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 | 4.97M | } |
pdf_shading.c:pdfi_countup_impl Line | Count | Source | 39 | 362k | { | 40 | 362k | 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 | 362k | 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 | 362k | } |
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.02M | { | 40 | 1.02M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 1 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 1 | return; | 47 | 1 | } | 48 | 1.02M | 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.02M | } |
pdf_check.c:pdfi_countup_impl Line | Count | Source | 39 | 18.6k | { | 40 | 18.6k | 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.6k | 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.6k | } |
pdf_sec.c:pdfi_countup_impl Line | Count | Source | 39 | 28.5k | { | 40 | 28.5k | 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.5k | 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.5k | } |
Unexecuted instantiation: pdf_utf8.c:pdfi_countup_impl pdf_deref.c:pdfi_countup_impl Line | Count | Source | 39 | 8.84M | { | 40 | 8.84M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 428 | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 428 | return; | 47 | 428 | } | 48 | 8.84M | 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.84M | } |
pdf_repair.c:pdfi_countup_impl Line | Count | Source | 39 | 200k | { | 40 | 200k | 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 | 200k | 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 | 200k | } |
pdf_obj.c:pdfi_countup_impl Line | Count | Source | 39 | 2.88M | { | 40 | 2.88M | 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.88M | 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.88M | } |
pdf_doc.c:pdfi_countup_impl Line | Count | Source | 39 | 1.20M | { | 40 | 1.20M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 41 | 4.29k | { | 42 | | #if REFCNT_DEBUG | 43 | | if (o == NULL) | 44 | | dprintf("Incrementing reference count of NULL pointer\n"); | 45 | | #endif | 46 | 4.29k | return; | 47 | 4.29k | } | 48 | 1.20M | 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.20M | } |
pdf_fapi.c:pdfi_countup_impl Line | Count | Source | 39 | 17.2M | { | 40 | 17.2M | 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 | 17.2M | 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 | 17.2M | } |
|
101 | 805M | } zpdfops.c:pdfi_countdown_impl Line | Count | Source | 55 | 2.27M | { | 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.27M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 461k | 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.81M | 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.81M | if (o->refcnt != 0) | 78 | 1.70M | 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 | 103k | pdfi_free_object(o); | 101 | 103k | } |
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 | 283k | 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 | 863k | 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.30M | pdfi_free_object(o); | 101 | 1.30M | } |
pdf_dict.c:pdfi_countdown_impl Line | Count | Source | 55 | 235M | { | 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 | 235M | 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 | 233M | 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 | 233M | if (o->refcnt != 0) | 78 | 15.6M | 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 | 218M | pdfi_free_object(o); | 101 | 218M | } |
pdf_array.c:pdfi_countdown_impl Line | Count | Source | 55 | 355M | { | 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 | 355M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 152M | 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 | 202M | 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 | 202M | if (o->refcnt != 0) | 78 | 55.5M | 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 | 146M | pdfi_free_object(o); | 101 | 146M | } |
pdf_xref.c:pdfi_countdown_impl Line | Count | Source | 55 | 79.8k | { | 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 | 79.8k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 12.2k | 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 | 67.6k | 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 | 67.6k | if (o->refcnt != 0) | 78 | 53.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 | 14.4k | pdfi_free_object(o); | 101 | 14.4k | } |
pdf_int.c:pdfi_countdown_impl Line | Count | Source | 55 | 30.9M | { | 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 | 30.9M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 30.8M | 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 | 67.8k | 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 | 67.8k | 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 | 67.8k | pdfi_free_object(o); | 101 | 67.8k | } |
pdf_file.c:pdfi_countdown_impl Line | Count | Source | 55 | 21.0M | { | 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 | 21.0M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 18.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 | 2.36M | 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.36M | if (o->refcnt != 0) | 78 | 2.36M | 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.20M | { | 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.20M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 1.76M | 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.44M | 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.44M | if (o->refcnt != 0) | 78 | 1.80M | 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 | 635k | pdfi_free_object(o); | 101 | 635k | } |
pdf_pattern.c:pdfi_countdown_impl Line | Count | Source | 55 | 294k | { | 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 | 294k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 109k | 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 | 185k | 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 | 185k | if (o->refcnt != 0) | 78 | 185k | 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 | 100M | { | 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 | 100M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 50.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 | 50.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 | 50.4M | if (o->refcnt != 0) | 78 | 48.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 | 1.63M | pdfi_free_object(o); | 101 | 1.63M | } |
pdf_stack.c:pdfi_countdown_impl Line | Count | Source | 55 | 664M | { | 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 | 664M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 110M | 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 | 554M | 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 | 554M | if (o->refcnt != 0) | 78 | 245M | 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 | 308M | pdfi_free_object(o); | 101 | 308M | } |
pdf_image.c:pdfi_countdown_impl Line | Count | Source | 55 | 3.49M | { | 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.49M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 889k | 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.60M | 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.60M | if (o->refcnt != 0) | 78 | 1.81M | 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 | 787k | pdfi_free_object(o); | 101 | 787k | } |
pdf_page.c:pdfi_countdown_impl Line | Count | Source | 55 | 1.96M | { | 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.96M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 302k | 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.66M | 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.66M | if (o->refcnt != 0) | 78 | 1.65M | 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.09k | pdfi_free_object(o); | 101 | 1.09k | } |
pdf_annot.c:pdfi_countdown_impl Line | Count | Source | 55 | 4.88M | { | 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.88M | 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 | 3.11M | 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.11M | if (o->refcnt != 0) | 78 | 3.06M | 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 | 49.1k | pdfi_free_object(o); | 101 | 49.1k | } |
pdf_mark.c:pdfi_countdown_impl Line | Count | Source | 55 | 1.22M | { | 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.22M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 519k | 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 | 704k | 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 | 704k | if (o->refcnt != 0) | 78 | 672k | 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 | 32.7k | pdfi_free_object(o); | 101 | 32.7k | } |
pdf_font.c:pdfi_countdown_impl Line | Count | Source | 55 | 299M | { | 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 | 299M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 16.1M | 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 | 283M | 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 | 283M | if (o->refcnt != 0) | 78 | 276M | 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.11M | pdfi_free_object(o); | 101 | 7.11M | } |
pdf_font0.c:pdfi_countdown_impl Line | Count | Source | 55 | 1.66M | { | 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.66M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 314k | 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.35M | 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.35M | if (o->refcnt != 0) | 78 | 1.25M | 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 | 100k | pdfi_free_object(o); | 101 | 100k | } |
pdf_font1.c:pdfi_countdown_impl Line | Count | Source | 55 | 330M | { | 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 | 330M | 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 | 320M | 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 | 320M | if (o->refcnt != 0) | 78 | 230M | 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 | 89.7M | pdfi_free_object(o); | 101 | 89.7M | } |
pdf_font1C.c:pdfi_countdown_impl Line | Count | Source | 55 | 6.88M | { | 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 | 6.88M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 532k | 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.35M | 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.35M | if (o->refcnt != 0) | 78 | 3.99M | 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.35M | pdfi_free_object(o); | 101 | 2.35M | } |
pdf_fontps.c:pdfi_countdown_impl Line | Count | Source | 55 | 86.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 | 86.3M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 370k | 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 | 85.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 | 85.9M | if (o->refcnt != 0) | 78 | 85.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 | 57.1k | pdfi_free_object(o); | 101 | 57.1k | } |
pdf_font3.c:pdfi_countdown_impl Line | Count | Source | 55 | 188k | { | 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 | 188k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 49.1k | 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 | 139k | 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 | 139k | if (o->refcnt != 0) | 78 | 131k | 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.50k | pdfi_free_object(o); | 101 | 8.50k | } |
pdf_fontTT.c:pdfi_countdown_impl Line | Count | Source | 55 | 16.0M | { | 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 | 16.0M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 2.66M | 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 | 13.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 | 13.4M | if (o->refcnt != 0) | 78 | 10.7M | 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.69M | pdfi_free_object(o); | 101 | 2.69M | } |
pdf_font11.c:pdfi_countdown_impl Line | Count | Source | 55 | 305k | { | 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 | 305k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 154k | 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 | 150k | 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 | 150k | if (o->refcnt != 0) | 78 | 70.7k | 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.2k | pdfi_free_object(o); | 101 | 80.2k | } |
pdf_cmap.c:pdfi_countdown_impl Line | Count | Source | 55 | 80.4k | { | 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.4k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 79.6k | 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 | 827 | 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 | 827 | if (o->refcnt != 0) | 78 | 269 | 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 | 558 | pdfi_free_object(o); | 101 | 558 | } |
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 | 94.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 | 94.2k | if (o->refcnt != 0) | 78 | 94.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 | 40.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 | 40.4M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 2.63M | 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.8M | 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.8M | if (o->refcnt != 0) | 78 | 32.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 | 4.97M | pdfi_free_object(o); | 101 | 4.97M | } |
pdf_shading.c:pdfi_countdown_impl Line | Count | Source | 55 | 831k | { | 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 | 831k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 224k | 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 | 607k | 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 | 607k | if (o->refcnt != 0) | 78 | 244k | 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 | 362k | pdfi_free_object(o); | 101 | 362k | } |
pdf_func.c:pdfi_countdown_impl Line | Count | Source | 55 | 143k | { | 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 | 143k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 14 | 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 | 143k | 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 | 143k | if (o->refcnt != 0) | 78 | 143k | 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 | 152k | { | 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 | 152k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 73.1k | 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.8k | 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.8k | if (o->refcnt != 0) | 78 | 79.8k | 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.89M | { | 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.89M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 1.46M | 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.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 | 1.42M | if (o->refcnt != 0) | 78 | 400k | 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.02M | pdfi_free_object(o); | 101 | 1.02M | } |
pdf_check.c:pdfi_countdown_impl Line | Count | Source | 55 | 12.6M | { | 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.6M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 6.49M | 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.18M | 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.18M | if (o->refcnt != 0) | 78 | 6.16M | 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.6k | pdfi_free_object(o); | 101 | 18.6k | } |
pdf_sec.c:pdfi_countdown_impl Line | Count | Source | 55 | 34.1k | { | 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.1k | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 3.67k | 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.4k | 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.4k | if (o->refcnt != 0) | 78 | 16.4k | 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.0k | pdfi_free_object(o); | 101 | 14.0k | } |
Unexecuted instantiation: pdf_utf8.c:pdfi_countdown_impl pdf_deref.c:pdfi_countdown_impl Line | Count | Source | 55 | 3.54M | { | 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.54M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 117k | 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.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 | 3.42M | if (o->refcnt != 0) | 78 | 3.20M | 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 | 218k | pdfi_free_object(o); | 101 | 218k | } |
pdf_repair.c:pdfi_countdown_impl Line | Count | Source | 55 | 3.03M | { | 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.03M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 1.53M | 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.49M | 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.49M | 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 | 91.8k | pdfi_free_object(o); | 101 | 91.8k | } |
pdf_obj.c:pdfi_countdown_impl Line | Count | Source | 55 | 1.95M | { | 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.95M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 209k | 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.74M | 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.74M | if (o->refcnt != 0) | 78 | 1.05M | 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 | 684k | pdfi_free_object(o); | 101 | 684k | } |
pdf_doc.c:pdfi_countdown_impl Line | Count | Source | 55 | 29.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 | 29.3M | if ((uintptr_t)o < TOKEN__LAST_KEY) | 64 | 16.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 | 12.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 | 12.6M | if (o->refcnt != 0) | 78 | 12.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 | 302k | pdfi_free_object(o); | 101 | 302k | } |
pdf_fapi.c:pdfi_countdown_impl Line | Count | Source | 55 | 57.2M | { | 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 | 57.2M | 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 | 57.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 | 57.2M | if (o->refcnt != 0) | 78 | 40.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 | 17.2M | pdfi_free_object(o); | 101 | 17.2M | } |
|