From ce9686e5fb17170e772a0a03438e0bdfd01809d6 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 12 Aug 2024 15:14:41 -0400 Subject: [PATCH] Fix link memory usage reporting. --- htmldoc/ps-pdf.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htmldoc/ps-pdf.cxx b/htmldoc/ps-pdf.cxx index 8a45f361..b6ae8035 100644 --- a/htmldoc/ps-pdf.cxx +++ b/htmldoc/ps-pdf.cxx @@ -1001,6 +1001,8 @@ pspdf_debug_stats() if (r->type == RENDER_TEXT) bytes += strlen((char *)r->data.text.buffer); + else if (r->type == RENDER_LINK) + bytes += strlen((char *)r->data.link); } }