mirror of
https://github.com/celisej567/abaddon.git
synced 2026-09-06 20:15:19 +03:00
fix crash
This commit is contained in:
@@ -87,8 +87,10 @@ void ChatMessageItemContainer::UpdateContent() {
|
||||
if (m_text_component != nullptr)
|
||||
UpdateTextComponent(m_text_component);
|
||||
|
||||
if (m_embed_component != nullptr)
|
||||
if (m_embed_component != nullptr) {
|
||||
delete m_embed_component;
|
||||
m_embed_component = nullptr;
|
||||
}
|
||||
|
||||
if (data->Embeds.size() == 1) {
|
||||
m_embed_component = CreateEmbedComponent(data);
|
||||
|
||||
Reference in New Issue
Block a user