From f288be72d95482af7fe8cadb42dff71e3a5b26a0 Mon Sep 17 00:00:00 2001 From: Dmytro Shynkevych Date: Sun, 27 Sep 2015 21:06:27 -0400 Subject: [PATCH] genericchatroomwidget: fixed memory leak if compact view enabled --- src/widget/genericchatroomwidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/widget/genericchatroomwidget.cpp b/src/widget/genericchatroomwidget.cpp index be25f919a..3382e2776 100644 --- a/src/widget/genericchatroomwidget.cpp +++ b/src/widget/genericchatroomwidget.cpp @@ -72,6 +72,7 @@ void GenericChatroomWidget::compactChange(bool _compact) // avatar if (isCompact()) { + delete textLayout; // Not needed setFixedHeight(25); avatar->setSize(QSize(20,20)); mainLayout->addSpacing(18);