Commit 06c5941e authored by Alexander Akulich's avatar Alexander Akulich
Browse files

Conversation: Fix a crash in destructor

parent d70b55bd
......@@ -288,7 +288,9 @@ Conversation::~Conversation()
//if we are not handling the channel do nothing.
if (!d->delegated) {
// d->messages is valid here (destroyed in a deeper base class destructor)
// but the textChannel actually can be invalid.
if (!d->delegated && !d->messages->textChannel().isNull()) {
delete d;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment