From ad573ecc84a043ff8740f48a92659fdaf1212f9f Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 24 May 2023 12:50:54 +0400 Subject: [PATCH] Fix a possible crash in Large Emoji toggling. --- Telegram/SourceFiles/history/view/history_view_element.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/history/view/history_view_element.cpp b/Telegram/SourceFiles/history/view/history_view_element.cpp index d219727c1..d6e7c4099 100644 --- a/Telegram/SourceFiles/history/view/history_view_element.cpp +++ b/Telegram/SourceFiles/history/view/history_view_element.cpp @@ -1493,6 +1493,7 @@ auto Element::takeReactionAnimations() Element::~Element() { // Delete media while owner still exists. + clearSpecialOnlyEmoji(); base::take(_media); if (_heavyCustomEmoji) { _heavyCustomEmoji = false;