forked from qt-creator/qt-creator
Valgrind: Fix memory leaks
Detected by memcheck. Change-Id: I7eaf4cf7ee2b4c03b03bfc1bbc2d49c68612b6ad Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
e13f1a5047
commit
0a89b89065
@@ -442,6 +442,7 @@ CallgrindTool::CallgrindTool(QObject *parent)
|
||||
|
||||
auto button = new QToolButton;
|
||||
button->setMenu(menu);
|
||||
menu->setParent(button);
|
||||
button->setPopupMode(QToolButton::InstantPopup);
|
||||
button->setText(QLatin1String("$"));
|
||||
button->setToolTip(tr("Cost Format"));
|
||||
|
||||
Reference in New Issue
Block a user