mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-18 19:08:35 -04:00
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:
parent
14a1163afa
commit
7a94f9da74
1 changed files with 2 additions and 0 deletions
|
@ -260,6 +260,8 @@ ChatWidget::~ChatWidget()
|
|||
foreach (ChatWidgetHolder *chatWidgetHolder, mChatWidgetHolder) {
|
||||
delete(chatWidgetHolder);
|
||||
}
|
||||
delete ui->fontcolorButton->menu();
|
||||
delete ui->pushtoolsButton->menu();
|
||||
|
||||
delete ui;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue