From 7a94f9da74fd31032d6a51b518e057feff704864 Mon Sep 17 00:00:00 2001 From: chelovechishko Date: Fri, 13 May 2022 21:11:20 +0900 Subject: [PATCH] gui: chatwidget: delete menus in destructor As qt says: Ownership of the menu is not transferred to the tool button. --- retroshare-gui/src/gui/chat/ChatWidget.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/retroshare-gui/src/gui/chat/ChatWidget.cpp b/retroshare-gui/src/gui/chat/ChatWidget.cpp index a909e3e27..0d6d9f294 100644 --- a/retroshare-gui/src/gui/chat/ChatWidget.cpp +++ b/retroshare-gui/src/gui/chat/ChatWidget.cpp @@ -260,6 +260,8 @@ ChatWidget::~ChatWidget() foreach (ChatWidgetHolder *chatWidgetHolder, mChatWidgetHolder) { delete(chatWidgetHolder); } + delete ui->fontcolorButton->menu(); + delete ui->pushtoolsButton->menu(); delete ui; }