mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-23 16:39:16 -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
@ -260,6 +260,8 @@ ChatWidget::~ChatWidget()
|
||||
foreach (ChatWidgetHolder *chatWidgetHolder, mChatWidgetHolder) {
|
||||
delete(chatWidgetHolder);
|
||||
}
|
||||
delete ui->fontcolorButton->menu();
|
||||
delete ui->pushtoolsButton->menu();
|
||||
|
||||
delete ui;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user