[telegramdesktop/tdesktop/dev](https://github.com/telegramdesktop/tdesktop/tree/dev) • [24ccd1c](https://github.com/telegramdesktop/tdesktop/commit/24ccd1c92ec52f2fdf9dd944e544f286b0585a19) • _1 files, +6/-1_
Fix crash when finishing the appearing text animation

textAppearCheckLine() runs synchronously from inside the width and
height animation tick callbacks (textAppearWidthCallback /
textAppearHeightCallback). Calling RemoveComponents(TextAppearing::Bit())
there destroys those very animations (and their Ui::Animations::Simple
data) while the animations manager is still iterating them, leading to a
use-after-free / null _data dereference in Simple::value().

Defer the component removal to the next main loop iteration so the
running tick can unwind first.

[#tdesktop](?q=%23tdesktop)