summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-22 14:12:18 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-22 14:12:18 +0300
commit2c1d95177059c0486fca98ad1d43cdc0df7c5552 (patch)
tree4fe6ad3c9e5f7e228636e6a67ea76c15260d3bbc /src/ui
parentb53e1f203b57ab6deb088b50135ee49889356f84 (diff)
Cleanup: Tidying up per-frame memory allocs
No need to use Garbage here to collect per-frame strings and arrays.
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/documentwidget.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index b6f3b5ce..4c194608 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -4584,7 +4584,9 @@ static void drawRun_DrawContext_(void *context, const iGmRun *run) {
4584 appendCStr_String(&str, " \u2014 "); 4584 appendCStr_String(&str, " \u2014 ");
4585 appendCStr_String( 4585 appendCStr_String(
4586 &str, escape_Color(linkColor_GmDocument(doc, run->linkId, visited_GmLinkPart))); 4586 &str, escape_Color(linkColor_GmDocument(doc, run->linkId, visited_GmLinkPart)));
4587 append_String(&str, collect_String(format_Date(&date, "%b %d"))); 4587 iString *dateStr = format_Date(&date, "%b %d");
4588 append_String(&str, dateStr);
4589 delete_String(dateStr);
4588 } 4590 }
4589 if (!isEmpty_String(&str)) { 4591 if (!isEmpty_String(&str)) {
4590 if (run->isRTL) { 4592 if (run->isRTL) {