summaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/c/pgf/parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/runtime/c/pgf/parser.c b/src/runtime/c/pgf/parser.c
index 5a3d91bd4..c9a0234a6 100644
--- a/src/runtime/c/pgf/parser.c
+++ b/src/runtime/c/pgf/parser.c
@@ -675,10 +675,12 @@ pgf_item_copy(PgfItem* item, GuPool* pool, PgfParsing* ps)
}
memcpy(copy, item, sizeof(PgfItem));
+#ifdef PGF_COUNTS_DEBUG
if (ps != NULL) {
ps->item_count++;
ps->real_count++;
}
+#endif
item->conts->ref_count++;