1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

genericchatroomwidget: fixed memory leak if compact view enabled

This commit is contained in:
Dmytro Shynkevych 2015-09-27 21:06:27 -04:00
parent e1509a9f03
commit f288be72d9

View File

@ -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);