Fix a possible crash in Large Emoji toggling.

This commit is contained in:
John Preston 2023-05-24 12:50:54 +04:00
parent 1d2a50c407
commit ad573ecc84
1 changed files with 1 additions and 0 deletions

View File

@ -1493,6 +1493,7 @@ auto Element::takeReactionAnimations()
Element::~Element() {
// Delete media while owner still exists.
clearSpecialOnlyEmoji();
base::take(_media);
if (_heavyCustomEmoji) {
_heavyCustomEmoji = false;