gui: chatwidget: delete menus in destructor

As qt says: Ownership of the menu is not transferred to the tool button.
This commit is contained in:
chelovechishko 2022-05-13 21:11:20 +09:00
parent 14a1163afa
commit 7a94f9da74

View File

@ -260,6 +260,8 @@ ChatWidget::~ChatWidget()
foreach (ChatWidgetHolder *chatWidgetHolder, mChatWidgetHolder) {
delete(chatWidgetHolder);
}
delete ui->fontcolorButton->menu();
delete ui->pushtoolsButton->menu();
delete ui;
}