mirror of
https://github.com/uowuo/abaddon.git
synced 2026-08-15 05:19:58 +00:00
fix crash
This commit is contained in:
1 parent
49c6bda67b
commit
0c442a423e
1 file changed
+3
-1
@@ -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