From c9c2aa6dceee06fa56c0f1727e30945b363a11f2 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Thu, 28 Dec 2017 16:26:35 +0100 Subject: [PATCH] Fixed crash bug described by Cranken in #165 --- src/widgets/helper/channelview.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/widgets/helper/channelview.cpp b/src/widgets/helper/channelview.cpp index 4290b37b8..f4309759b 100644 --- a/src/widgets/helper/channelview.cpp +++ b/src/widgets/helper/channelview.cpp @@ -89,6 +89,10 @@ ChannelView::~ChannelView() { QObject::disconnect(&SettingsManager::getInstance(), &SettingsManager::wordTypeMaskChanged, this, &ChannelView::wordTypeMaskChanged); + this->messageAppendedConnection.disconnect(); + this->messageRemovedConnection.disconnect(); + this->repaintGifsConnection.disconnect(); + this->layoutConnection.disconnect(); } void ChannelView::queueUpdate()