mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-19 03:18:15 -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) {
|
foreach (ChatWidgetHolder *chatWidgetHolder, mChatWidgetHolder) {
|
||||||
delete(chatWidgetHolder);
|
delete(chatWidgetHolder);
|
||||||
}
|
}
|
||||||
|
delete ui->fontcolorButton->menu();
|
||||||
|
delete ui->pushtoolsButton->menu();
|
||||||
|
|
||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue