From d69dd1531b397e35ded5e4abe3b0f42b6d98b028 Mon Sep 17 00:00:00 2001 From: Anon Date: Tue, 27 Aug 2024 12:10:19 -0500 Subject: [PATCH] Fix memory leak around emojis on server render (#2674) --- src/shared/markdown.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/markdown.ts b/src/shared/markdown.ts index 5db10dc8..36e49d17 100644 --- a/src/shared/markdown.ts +++ b/src/shared/markdown.ts @@ -252,6 +252,7 @@ export function setupEmojiDataModel(custom_emoji_views: CustomEmojiView[]) { custom_emoji_views, x => x.custom_emoji.category, ); + customEmojis.length = 0; for (const [category, emojis] of Object.entries(groupedEmojis)) { customEmojis.push({ id: category,