mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix crash in large animated emoji.
This commit is contained in:
parent
73fc478a2d
commit
4796594011
2 changed files with 8 additions and 0 deletions
|
@ -61,6 +61,13 @@ LargeEmoji::LargeEmoji(
|
||||||
emoji)) {
|
emoji)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LargeEmoji::~LargeEmoji() {
|
||||||
|
if (_hasHeavyPart) {
|
||||||
|
unloadHeavyPart();
|
||||||
|
_parent->checkHeavyPart();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
QSize LargeEmoji::size() {
|
QSize LargeEmoji::size() {
|
||||||
using namespace rpl::mappers;
|
using namespace rpl::mappers;
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,7 @@ public:
|
||||||
LargeEmoji(
|
LargeEmoji(
|
||||||
not_null<Element*> parent,
|
not_null<Element*> parent,
|
||||||
const Ui::Text::IsolatedEmoji &emoji);
|
const Ui::Text::IsolatedEmoji &emoji);
|
||||||
|
~LargeEmoji();
|
||||||
|
|
||||||
QSize size() override;
|
QSize size() override;
|
||||||
void draw(
|
void draw(
|
||||||
|
|
Loading…
Add table
Reference in a new issue