diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-06 23:57:05 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2020-11-06 23:57:05 -0500 |
commit | 0c442a423eaebe04a61decc91d7018c33e3fdbde (patch) | |
tree | b2bf9f3aa4c418a72ffe2757b1f49764d6503632 /components | |
parent | 49c6bda67b7f4af5f28a9ad02a0cb98f7e535be1 (diff) | |
download | abaddon-portaudio-0c442a423eaebe04a61decc91d7018c33e3fdbde.tar.gz abaddon-portaudio-0c442a423eaebe04a61decc91d7018c33e3fdbde.zip |
fix crash
Diffstat (limited to 'components')
-rw-r--r-- | components/chatmessage.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/chatmessage.cpp b/components/chatmessage.cpp index e9aaa6c..70c1453 100644 --- a/components/chatmessage.cpp +++ b/components/chatmessage.cpp @@ -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); |